forked from pool/ignition
Accepting request 1070759 from devel:kubic:ignition
- Add `dasd_mod.dasd=autodetect` to kernel command line parameters (for Ignition device support on S/390) [boo#1207903] - Fix S/390 build in 0001-ignore-missing-qemu-blockdev.patch OBS-URL: https://build.opensuse.org/request/show/1070759 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ignition?expand=0&rev=38
This commit is contained in:
commit
dbcb6bc24a
@ -17,13 +17,20 @@ diff --git a/internal/providers/qemu/qemu_blockdev.go b/internal/providers/qemu/
|
||||
index 911eb973..11739f3e 100644
|
||||
--- a/internal/providers/qemu/qemu_blockdev.go
|
||||
+++ b/internal/providers/qemu/qemu_blockdev.go
|
||||
@@ -83,7 +83,8 @@ func fetchConfigFromBlockDevice(logger *log.Logger) ([]byte, error) {
|
||||
@@ -22,7 +22,6 @@ package qemu
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
- "fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"time"
|
||||
@@ -83,7 +83,7 @@ func fetchConfigFromBlockDevice(logger *log.Logger) ([]byte, error) {
|
||||
return nil, err
|
||||
}
|
||||
case <-time.After(blockDeviceTimeout):
|
||||
- return nil, fmt.Errorf("timed out after %v waiting for block device %q to appear", blockDeviceTimeout, ignitionBlockDevicePath)
|
||||
+ logger.Info("timed out after %v waiting for block device %q to appear. Ignoring...", blockDeviceTimeout, ignitionBlockDevicePath)
|
||||
+ return util.ParseConfig(logger, []byte{})
|
||||
}
|
||||
|
||||
return bytes.TrimRight(data, "\x00"), nil
|
||||
|
@ -20,5 +20,5 @@ if ! [ -f "${flagpath}/firstboot_happened" ]; then
|
||||
source "${flagpath}/ignition.firstboot"
|
||||
fi
|
||||
|
||||
set ignition_firstboot="ignition.firstboot $ignition_network_kcmdline"
|
||||
set ignition_firstboot="ignition.firstboot dasd_mod.dasd=autodetect $ignition_network_kcmdline"
|
||||
fi
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 9 17:55:16 UTC 2023 - Ignaz Forster <iforster@suse.com>
|
||||
|
||||
- Add `dasd_mod.dasd=autodetect` to kernel command line parameters
|
||||
(for Ignition device support on S/390) [boo#1207903]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 13:09:37 UTC 2023 - iforster@suse.com
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user