Author: shadzik Date: Mon Aug 9 02:40:36 2010 New Revision: 11770 Modified: livecd/mklive/templates-kde4/initrd/init Log: - pass runlevel to real roots /sbin/init
Modified: livecd/mklive/templates-kde4/initrd/init ============================================================================== --- livecd/mklive/templates-kde4/initrd/init (original) +++ livecd/mklive/templates-kde4/initrd/init Mon Aug 9 02:40:36 2010 @@ -31,6 +31,7 @@ # get kernelcmd opts # get toram option dmesg |grep 'Kernel command line' |grep -q toram && live_toram=1 || live_toram=0 +run_lvl=$(dmesg |grep 'Kernel command line' |sed 's/.*rlvl=//') echo "Starting Live initrd. Use 'debuginitrd' argument to enable debug mode." for arg in $@ @@ -129,6 +130,6 @@ [ ! -z "$debugmode" ] && run_debug_shell umount /proc umount /sys -exec switch_root $union_dir /sbin/init +exec switch_root $union_dir /sbin/init $run_lvl echo "Fatal: switch_root failed! That's all folks." run_debug_shell _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
