375fc509c5
- Mark all scripts as executable (bnc#887010) * Remove: 0116-81cio_ignore-Mark-scripts-as-executable * Add: 0116-Mark-scripts-as-executable.patch - 95dasd_rules: Enable device before checking type * Add: 0117-95dasd_rules-Enable-the-device-before-checking-devic.patch - 95zfcp_rules: Enable device before checking type * Add: 0118-95zfcp_rules-Enable-the-device-before-checking-devic.patch - Reset IFS variable * Add: 0119-Reset-IFS-variable.patch - Handle module alias properly (bnc#886839) * Add: 0115-Handle-module-alias-properly.patch - 81cio_ignore: Mark scripts as executable (bnc#887010) * Add: 0116-81cio_ignore-Mark-scripts-as-executable.patch - 91zipl: Translate 'ext2' into 'ext4' module * Add: 0114-91zipl-Translate-ext2-3-into-ext4.patch - Enable converting of directory /var/run /var/lock to symlinks (bnc#877680) * Add: 0106-dracut-Enable-converting-of-directory-var-run-var-lo.patch - Fixup typo 'firmare' instead of 'firmware' * Add: 0107-Fixup-typo-firmare-instead-of-firmware.patch - 91zipl: Store commandline correctly * Add: 0108-91zipl-Store-commandline-correctly.patch - 95dasd_rules: Store all devices in commandline * 0109-95dasd_rules-Store-all-devices-in-commandline.patch - 95zfcp_rules: Store all devices in commandline * Add: 0110-95zfcp_rules-Store-all-devices-in-commandline.patch - 90mdraid: Remove line for 'offroot' detection OBS-URL: https://build.opensuse.org/request/show/240885 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=171
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 12131d99811c9829ed1c19e164f2ef22634ba4e5 Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Fri, 11 Jul 2014 12:55:55 +0200
|
|
Subject: 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 <hare@suse.de>
|
|
---
|
|
modules.d/91zipl/module-setup.sh | 15 ++++++++++++++-
|
|
1 file changed, 14 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/modules.d/91zipl/module-setup.sh b/modules.d/91zipl/module-setup.sh
|
|
index eda4c32..9fe6acc 100644
|
|
--- a/modules.d/91zipl/module-setup.sh
|
|
+++ b/modules.d/91zipl/module-setup.sh
|
|
@@ -17,7 +17,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
|
|
--
|
|
1.8.4.5
|
|
|