Author: glen
Date: Tue Nov 27 18:11:07 2007
New Revision: 9109
Modified:
geninitrd/trunk/geninitrd
Log:
- need root to access files and make /dev nodes on initrd
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Tue Nov 27 18:11:07 2007
@@ -1474,6 +1474,11 @@
EOF
}
+# main()
+if [ "$(id -u)" != 0 ]; then
+ die "You need to be root to generate initrd"
+fi
+
if [ -f /etc/udev/udev.conf -a -x /sbin/initrd-udevd ]; then
USE_UDEV=yes
. /etc/udev/udev.conf
@@ -1864,7 +1869,6 @@
# echo "losetup $rootdev /loopfs$loopFile" >> "$RCFILE"
#fi
-# main generation
if is_yes "$USE_UDEV"; then
initrd_gen_udev
fi
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit