Bug 1216465

Summary: dracut-kiwi-lib requires parted on all architectures
Product: [openSUSE] openSUSE Distribution Reporter: Georg Pfuetzenreuter <georg.pfuetzenreuter>
Component: BasesystemAssignee: David Cassany <dcassany>
Status: CONFIRMED --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Georg Pfuetzenreuter 2023-10-22 14:42:05 UTC
Hi,

the patch

https://build.opensuse.org/package/rdiff/openSUSE:Factory/python-kiwi?linkrev=base&rev=105#diff_1_n108

moved the `Requires: parted` line into an if-conditional making it only apply on the s390 architecture.

Unfortunately the changelog entry does only reveal that, and not why, this change was made, however it breaks the first boot off Kiwi built images on other architectures, if parted is not manually included in the package selection:

```
         Starting dracut pre-mount hook...
[    2.496338] dracut-pre-mount[430]: Created symlink /etc/systemd/system/systemd-fsck-root.service → /dev/null.
[    8.006393] dracut-pre-mount[749]: /lib/kiwi-partitions-lib.sh: line 23: partprobe: command not found
[    8.018705][  T420] dracut: FATAL: Failed to create partition table
[    8.019997][  T420] dracut: Refusing to continue
[    8.048843] dracut-pre-mount[755]: Failed to get properties: Transport endpoint is not connected
[    8.112482][    T1] reboot: System halted
```

Could `parted` be moved back to outside of the `%ifarch s390 s390x` block or is there more to consider here?

Best,
Georg
Comment 1 Georg Pfuetzenreuter 2023-10-22 14:54:01 UTC
Upon a closer investigation, it seems the Kiwi master branch already has a patch dropping the requirement for `partprobe`:

https://github.com/OSInside/kiwi/commit/4ab089ac5244c1d867be850ec99bc81814466bf7

Hence, instead of moving out the `parted` requirement, it might make more sense to pick that commit into our tree? :-)
Comment 2 David Cassany 2023-10-26 04:58:38 UTC
Hi,

Indeed you are right there a parted requirement issue, we are in the process of finding a solution upstream here within the following PR:

https://github.com/OSInside/kiwi/pull/2385

Thanks to the bug report we also realized the issue is affecting upstream master branch for live ISOs, where there is no blockdev fallback to partprobe. Once fixed that upstream I would backport to 15.x series the required commits.
Comment 4 Maintenance Automation 2024-01-08 20:30:10 UTC
SUSE-RU-2024:0053-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1216465
Sources used:
openSUSE Leap Micro 5.3 (src): python-kiwi-9.24.43-150100.3.65.1
openSUSE Leap Micro 5.4 (src): python-kiwi-9.24.43-150100.3.65.1
openSUSE Leap 15.4 (src): python-kiwi-9.24.43-150100.3.65.1
openSUSE Leap 15.5 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro 5.3 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro 5.4 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro 5.5 (src): python-kiwi-9.24.43-150100.3.65.1
Development Tools Module 15-SP4 (src): python-kiwi-9.24.43-150100.3.65.1
Development Tools Module 15-SP5 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro 5.1 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro 5.2 (src): python-kiwi-9.24.43-150100.3.65.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): python-kiwi-9.24.43-150100.3.65.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.