From 3bb6c683094490e88883b20b5c6cffc17df165e7 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Thu, 3 Jun 2010 13:38:31 +0200 Subject: Mount tmpfs or (if supported) devtmpfs on /dev, move it into the real root before switch_root --- init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init') diff --git a/init b/init index e543477..e58a587 100644 --- a/init +++ b/init @@ -7,6 +7,11 @@ msg ":: Loading Initramfs" /bin/mount -t proc proc /proc /bin/mount -t sysfs sys /sys +if grep -q devtmpfs /proc/filesystems 2>/dev/null; then + /bin/mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid +else + /bin/mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid +fi read CMDLINE