wok-current rev 7647
busybox/init: add rootuuid= support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 14 22:29:55 2010 +0100 (2010-12-14) |
parents | 4e8e85644836 |
children | f99ea44cc9f6 |
files | busybox/stuff/init |
line diff
1.1 --- a/busybox/stuff/init Tue Dec 14 18:22:56 2010 +0100 1.2 +++ b/busybox/stuff/init Tue Dec 14 22:29:55 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 | \