SVN: geninitrd/trunk/geninitrd
adamg
adamg at pld-linux.org
Mon Jul 9 09:41:35 CEST 2007
Author: adamg
Date: Mon Jul 9 09:41:34 2007
New Revision: 8668
Modified:
geninitrd/trunk/geninitrd
Log:
- Jacek Konieczny's geninitrd-rootdev.patch applied
(http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2007-May/018983.html)
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Mon Jul 9 09:41:34 2007
@@ -1459,11 +1459,15 @@
partition, maj, min);
}
' /proc/partitions)"
-if [ ! -b $device ]; then
+if [ "$device" != '/dev/no_partition_found' -a ! -b $device ]; then
mknod $device b $maj $min
fi
EOF
cat << EOF >> "$s"
+if [ "\$device" = '/dev/no_partition_found' ] ; then
+ device="$rootdev"
+fi
+
mount -t $rootFs -r \$device /newroot
init="\$(busybox awk ' /init=\// { gsub(/.*init=/,NIL,\$0); gsub(/ .*/,NIL,\$0); print \$0; } ' /proc/cmdline )"
if [ -z "\$init" -o ! -x "/newroot\$init" ]; then
More information about the pld-cvs-commit
mailing list