Closed jloeser closed 3 weeks ago
Hmm, the part which is unclear to me is why you think this is an issue that needs to be fixed in kiwi ?
I assume /lib/systemd/system/initrd-switch-root.service
is provided by a package of the Ubuntu system that you are using. The change you added to the service unit looks good to me but does not fall into the responsibility of kiwi.
Instead of the break point in code it should imho also be possible to add the above patch file as overlay file e.g root/sysroot.patch
to your kiwi image description and add a line in your config.sh
script that does
set -ex
patch -p0 < sysroot.patch
rm /sysroot.patch
This will modify a file in your root tree as sort of a "hot fix" and should have the same effect. Until things will be fixed on Ubuntu side you can maintain the change in your kiwi image description.
I don't see what else we can offer in this regard. In addition please also note that Ubuntu 22.04 is outside of the support matrix for kiwi v10.
@Conan-Kudo Any thoughts you want to add here ?
Hmm, the part which is unclear to me is why you think this is an issue that needs to be fixed in kiwi ?
Oh, you are right! Looks like I did mix up things because I was also playing around with the dracut-kiwi-live
package.
Anyway, thanks for the hint with the hot fix in the config.sh
- this is definitely a way to go.
Sorry for any circumstances, from my point of view we can close this issue.
Problem description
I try to build a Ubuntu 22.04 ISO which can be booted directly from ISO and via network via dracut-live.
A built Ubuntu 22.04 ISO fails during boot (via ISO and network) with:
Expected behaviour
Successful boot.
Steps to reproduce the behaviour
ubuntu/x86_64/ubuntu-jammy/config.xml
(basically a stripped version for ISO only build and addeddracut-live
package):Investigation
Something seems wrong with service dependencies in initrd procuded by dracut.
The following manual steps in the dracut emergency shell make the system boot up successfully:
So unit file-wise, everything needed seems to be available in initrd.
Unit files:
I came up with this awkward workaround which produces a bootable ISO for me:
kiwi-ng system build --description ubuntu/x86_64/ubuntu-jammy/
, wait for breakpointApply the following patch to the
initrd-switch-root.service
file in the image build directory:c
in PDB prompt)OS and Software information