[projects/geninitrd] warn about btrfs not fully supported by geninitrd

gotar gotar at pld-linux.org
Mon Aug 29 22:40:45 CEST 2016


commit dfc0f1befd64d2c3864d5a279110d76bb680d1c2
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Mon Aug 29 22:32:32 2016 +0200

    warn about btrfs not fully supported by geninitrd
    
    Before mounting multidevice btrfs filesystem, `btrfs device scan' needs to
    be executed, otherwise filesystem won't mount. Without the btrfs binary,
    one might instruct kernel in command line insted, but this is also not
    supported (blkid finds single device only). Since there is dracut, just
    notice user about this shortcoming, so he could properly configure
    bootloader by manually appending appropriate devices when needed.

 geninitrd | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/geninitrd b/geninitrd
index d152eec..1649787 100755
--- a/geninitrd
+++ b/geninitrd
@@ -432,6 +432,7 @@ find_depmod() {
 			smodule=$(basename_module $modpath)
 			case "$smodule" in
 				btrfs)
+					warn "mounting multidevice btrfs volume requires rootfsflags=device=/dev/...,device=/dev/... kernel option"
 					find_depmod "-libcrc32c"
 					;;
 				crc-t10dif)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list