From: Hannes Reinecke Date: Fri, 11 Jul 2014 10:55:55 +0000 (+0200) Subject: 91zipl: Translate 'ext2/3' into ext4 X-Git-Tag: 047~34^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403f2c3e1dbb681c27b1279b9d023449cfc6d007;p=thirdparty%2Fdracut.git 91zipl: Translate 'ext2/3' into ext4 91zipl tries to read the filesystem for the /boot/zipl device. On SLE12, however, the ext2 and ext3 filesystems are handled by the ext4 module. And due to bug#886839 no error is registered and booting fails. So implement a band-aid to translate it into ext4. Signed-off-by: Hannes Reinecke --- diff --git a/modules.d/91zipl/module-setup.sh b/modules.d/91zipl/module-setup.sh index c65b9b1c1..4ca7e3048 100755 --- a/modules.d/91zipl/module-setup.sh +++ b/modules.d/91zipl/module-setup.sh @@ -20,7 +20,20 @@ depends() { # called by dracut installkernel() { - instmods ext2 + local _boot_zipl + + _boot_zipl=$(sed -n 's/\(.*\)\w*\/boot\/zipl.*/\1/p' /etc/fstab) + if [ -n "$_boot_zipl" ] ; then + eval $(blkid -s TYPE -o udev ${_boot_zipl}) + if [ -n "$ID_FS_TYPE" ] ; then + case "$ID_FS_TYPE" in + ext?) + ID_FS_TYPE=ext4 + ;; + esac + instmods ${ID_FS_TYPE} + fi + fi } # called by dracut