wok-current diff busybox/stuff/init @ rev 7655

Add linux-without-modules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 15 20:56:53 2010 +0100 (2010-12-15)
parents a841d189e474
children 8135f4172a69
line diff
     1.1 --- a/busybox/stuff/init	Tue Oct 12 16:37:45 2010 +0200
     1.2 +++ b/busybox/stuff/init	Wed Dec 15 20:56:53 2010 +0100
     1.3 @@ -122,6 +122,10 @@
     1.4  	try_init
     1.5  fi
     1.6  grep -q cryptoroot= /proc/cmdline && try_init
     1.7 +if grep -q rootuuid= /proc/cmdline; then
     1.8 +	root="$(sed 's/.*rootuuid=\([^ ]*\).*/\1/' < /proc/cmdline)"
     1.9 +	mount $(blkid | grep $root | sed 's/:.*//') /mnt && try_init
    1.10 +fi
    1.11  umount /sys
    1.12  echo -n "Switching / to tmpfs..."
    1.13  size="$(grep rootfssize= < /proc/cmdline | \