commit dad8bc39c676fa05e2a1ef6f1961ecdb970091e3
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Sun Jun 28 14:38:20 2015 +0200

    One more fallback for rootdev.

 geninitrd | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index bedd738..7b962b5 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1002,6 +1002,12 @@ initrd_gen_initramfs_switchroot() {
                        mknod -m 660 $device b $maj $min
                fi
 
+               # XXX hack, fallback to rootdev from geninitrd time
+               if [ ! -e "$device" ]; then
+                       device="$rootdev"
+                       echo "DEVICE set to $device based on fstab entry from 
initrd gen time"
+               fi
+
                # XXX hack, if no device, try to parse it from /proc/partitions 
using /proc/sys/kernel/real-root-dev
                if [ ! -e "$device" ]; then
                        rrd=$(cat /proc/sys/kernel/real-root-dev)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/dad8bc39c676fa05e2a1ef6f1961ecdb970091e3

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to