commit 221523f41a9c8e2b0e26d879e25ad8c040080b53 Author: Jan Palus <at...@pld-linux.org> Date: Tue Jun 20 14:37:37 2023 +0200
drop logic to detect modules for root on loop device disabled since 2002 so apparently nobody cares for it and it breaks initrd generation during loop mounted image creation geninitrd | 23 ----------------------- 1 file changed, 23 deletions(-) --- diff --git a/geninitrd b/geninitrd index 46b2fc6..bc4319f 100755 --- a/geninitrd +++ b/geninitrd @@ -736,29 +736,6 @@ find_modules_for_devpath() { return fi - # check to see if we need to set up a loopback filesystem - if [[ "$devpath" == /dev/loop* ]]; then - die "Sorry, root on loop device isn't supported." - # TODO: rewrite for bsp and make nfs ready - if [ ! -x /sbin/losetup ]; then - die "losetup is missing" - fi - key="^# $(echo $devpath | awk -F/ '{print($3);}' | tr '[a-z]' '[A-Z]'):" - if ! is_yes "`awk '/'$key'/ { print( "yes"); }' $fstab`"; then - die "The root filesystem is on a $devpath, but there is no magic entry in $fstab for this device. Consult the $PROGRAM man page for more information" - fi - - line="`awk '/'$key'/ { print $0; }' $fstab`" - loopDev="$(echo $line | awk '{print $3}')" - loopFs="$(echo $line | awk '{print $4}')" - loopFile="$(echo $line | awk '{print $5}')" - - BASICMODULES="$BASICMODULES -loop" - find_module "-$loopFs" - BASICMODULES="$BASICMODULES -${loopFs}" - return - fi - if is_lvm "$devpath"; then find_modules_lvm "$devpath" return ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/221523f41a9c8e2b0e26d879e25ad8c040080b53 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit