# HG changeset patch # User Pascal Bellard # Date 1292362195 -3600 # Node ID 0b7c86ee9c76d3d638d433c89ab8ac4aa5b8bccc # Parent 4e8e856448361b5797b06df5809d040d08e96149 busybox/init: add rootuuid= support diff -r 4e8e85644836 -r 0b7c86ee9c76 busybox/stuff/init --- a/busybox/stuff/init Tue Dec 14 18:22:56 2010 +0100 +++ b/busybox/stuff/init Tue Dec 14 22:29:55 2010 +0100 @@ -122,6 +122,10 @@ try_init fi grep -q cryptoroot= /proc/cmdline && try_init +if grep -q rootuuid= /proc/cmdline; then + root="$(sed 's/.*rootuuid=\([^ ]*\).*/\1/' < /proc/cmdline)" + mount $(blkid | grep $root | sed 's/:.*//') /mnt && try_init +fi umount /sys echo -n "Switching / to tmpfs..." size="$(grep rootfssize= < /proc/cmdline | \