[projects/geninitrd] Make rootdev fallback work.

arekm arekm at pld-linux.org
Sat May 14 00:36:07 CEST 2016


commit 11202855dbaee5bc32209913df1ae8738c210c39
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 14 00:36:02 2016 +0200

    Make rootdev fallback work.

 geninitrd | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index 92a519d..771245e 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1004,7 +1004,11 @@ initrd_gen_initramfs_switchroot() {
 
 		# XXX hack, fallback to rootdev from geninitrd time
 		if [ ! -e "$device" ]; then
+	EOF
+	add_linuxrc <<-EOF
 			device="$rootdev"
+	EOF
+	add_linuxrc <<-'EOF'
 			echo "DEVICE set to $device based on fstab entry from initrd gen time"
 		fi
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list