|
|
9abf8c |
From f9c068e999cc76eaa318cc0773ef9133ea986131 Mon Sep 17 00:00:00 2001
|
|
|
9abf8c |
From: Sebastian Mitterle <smitterl@redhat.com>
|
|
|
9abf8c |
Date: Thu, 19 Mar 2020 12:12:50 +0100
|
|
|
9abf8c |
Subject: [PATCH] dasd: only install /etc/dasd.conf if present
|
|
|
9abf8c |
|
|
|
9abf8c |
`dasd.conf` needn't be present on system even if modules have been loaded.
|
|
|
9abf8c |
|
|
|
9abf8c |
Check if file exists to avoid error message during kernel update
|
|
|
9abf8c |
```bash
|
|
|
9abf8c |
dracut-install: ERROR: installing '/etc/dasd.conf'
|
|
|
9abf8c |
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.YvVRx5/initramfs -H /etc/dasd.conf
|
|
|
9abf8c |
```
|
|
|
9abf8c |
|
|
|
9abf8c |
(cherry picked from commit defb1611c771d9f05780aebb101baefde2f66874)
|
|
|
9abf8c |
|
|
|
9abf8c |
Resolves: #1815043
|
|
|
9abf8c |
---
|
|
|
9abf8c |
modules.d/95dasd/module-setup.sh | 5 +++--
|
|
|
9abf8c |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
9abf8c |
|
|
|
9abf8c |
diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/module-setup.sh
|
|
|
9abf8c |
index 0da61309..ec33a9e0 100755
|
|
|
9abf8c |
--- a/modules.d/95dasd/module-setup.sh
|
|
|
9abf8c |
+++ b/modules.d/95dasd/module-setup.sh
|
|
|
9abf8c |
@@ -18,8 +18,9 @@ depends() {
|
|
|
9abf8c |
install() {
|
|
|
9abf8c |
inst_hook cmdline 30 "$moddir/parse-dasd.sh"
|
|
|
9abf8c |
inst_multiple dasdinfo dasdconf.sh normalize_dasd_arg
|
|
|
9abf8c |
- if [[ $hostonly ]]; then
|
|
|
9abf8c |
- inst -H /etc/dasd.conf
|
|
|
9abf8c |
+ conf=/etc/dasd.conf
|
|
|
9abf8c |
+ if [[ $hostonly && -f $conf ]] ; then
|
|
|
9abf8c |
+ inst -H $conf
|
|
|
9abf8c |
fi
|
|
|
9abf8c |
inst_rules 56-dasd.rules
|
|
|
9abf8c |
inst_rules 59-dasd.rules
|
|
|
9abf8c |
|