SVN: geninitrd/trunk/geninitrd

arekm arekm at pld-linux.org
Sun Jan 8 23:04:21 CET 2012


Author: arekm
Date: Sun Jan  8 23:04:21 2012
New Revision: 12461

Modified:
   geninitrd/trunk/geninitrd
Log:
Try to always have /dev/console in root fs.

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Sun Jan  8 23:04:21 2012
@@ -826,6 +826,7 @@
 	umount_all
 	busybox_applet switch_root
 	add_linuxrc <<-'EOF'
+		[ ! -e /newroot/dev/console ] && mknod -m 660 /newroot/dev/console c 5 1 > /dev/null 2>&1
 		exec switch_root /newroot $init ${1:+"$@"}
 
 		echo "Error! initramfs should not reach this place."


More information about the pld-cvs-commit mailing list