]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
91zipl: Update active_devices.txt from /boot/zipl device
authorThomas Blume <thomas.blume@suse.com>
Fri, 3 Feb 2017 15:02:32 +0000 (16:02 +0100)
committerDaniel Molkentin <dmolkentin@suse.com>
Thu, 11 Jan 2018 10:12:39 +0000 (11:12 +0100)
References: bsc#939101

Signed-off-by: Thomas Blume <thomas.blume@suse.com>
modules.d/91zipl/install_zipl_cmdline.sh

index 3e939c15c11362f3586d10e3bb7e0a72b732dd05..b7546bef06ede4c722f1ede385b3b79bcd8b44a2 100755 (executable)
@@ -22,6 +22,13 @@ if [ -f ${MNT}/dracut-cmdline.conf ] ; then
     cp ${MNT}/dracut-cmdline.conf /etc/cmdline.d/99zipl.conf
 fi
 
+if [ -f ${MNT}/active_devices.txt ] ; then
+    while read dev etc ; do
+        [ "$dev" = "#" -o "$dev" = "" ] && continue;
+        cio_ignore -r $dev
+    done < ${MNT}/active_devices.txt
+fi
+
 umount ${MNT}
 
 if [ -f /etc/cmdline.d/99zipl.conf ] ; then