Skip to content

Conversation

@aafeijoo-suse
Copy link
Collaborator

@aafeijoo-suse aafeijoo-suse commented Jul 30, 2025

04a6bea and c2c6e2d are required for the upcoming systemd-v258

pvalena and others added 9 commits July 30, 2025 08:34
as the path might be f.e. /dev/disk/by-partlabel/EFI\x20System\x20Partition

which would produce Warning 'grep: warning: stray \ before x' in get_maj_min

Resolves: !505
(cherry picked from commit dracut-ng/dracut-ng@91b1574)
Currently check_vol_slaves_all return 0 even after checks on all slaves
fail. And this leads to an issue that "dracut -hostonly-mode strict"
gets stuck forever because instmods keeps waiting for user input when
it's passed empty argument in the kernel-modules module.

Fixes: c7c8c49 ("dracut-functions.sh: catch all lvm slaves")
Reported-by: Tomáš Bžatek <[email protected]>
Signed-off-by: Coiby Xu <[email protected]>
(cherry picked from commit dracut-ng/dracut-ng@b117013)
'systemd-repart' tool is commonly used to produce Discoverable Disk Image
(DDI) ("--make-ddi=TYPE" option) and by default the tool creates 'erofs'
root volume for sysext/confext. Include 'erofs' kernel module into
initramfs if present.

While on in, include 'loop' module as well as this one is an absolute must.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
(cherry picked from commit dracut-ng/dracut-ng@7f524d3)
`lsinitrd /boot/initrd.img` fails in case the initrd is zstd compressed:

```
$ dracut --zstd --no-early-microcode --force
$ 3cpio --examine /boot/initrd.img
0	zstd
$ lsinitrd /boot/initrd.img
Image: /boot/initrd.img: 0
========================================================================
Warning : /boot/initrd.img is a symbolic link, ignoring
Version:

Arguments:
dracut modules:
Warning : /boot/initrd.img is a symbolic link, ignoring
Warning : /boot/initrd.img is a symbolic link, ignoring
========================================================================
========================================================================
cpio: premature end of archive

dracut cmdline:
Warning : /boot/initrd.img is a symbolic link, ignoring
```

The `CAT` variable is `zstd -d -c`. The zstd man page says about the
`--force` parameter: "disable input and output checks. Allows [...]
operating on links". So this zstd behavior is intentional.

Resolve the initrd path to the real path. Then `lsinitrd` prints the
correct content and image size:

```
$ lsinitrd /boot/initrd.img
Image: /boot/initrd.img-6.14.0-23-generic: 15M
[...]
```

Bug-Ubuntu: https://launchpad.net/bugs/2116183
(cherry picked from commit dracut-ng/dracut-ng@22d93bc)
systemd-repart is capable not only of creating a partition, but also of
formatting it. According with repart.d, it is able to create the
following filesystems: ext4, btrfs, xfs, vfat, erofs and squashfs.

Add support in the systemd-repart module for the underlying tools to
allow systemd-repart to format the partition.

Failure to do so would make systemd-repart initramfs unit fail, if
Format= option is provided in a repart.d config file.

Signed-off-by: Emanuele Giuseppe Esposito <[email protected]>
(cherry picked from commit dracut-ng/dracut-ng@0220136)
This PR fixes the issue that recent kernels can mount EROFS
directly without loop devices, and this feature is enabled in Fedora
kernels (>=6.12; CONFIG_EROFS_FS_BACKED_BY_FILE=y).
This feature is now supported by mount/libmount, too.

I think the best approach would be to avoid the second mount altogether,
independently of the util-linux version.
It is more robust to use a bind mount there than to attempt to create
a second instance of the same file system.

Fixes: dracut-ng/dracut-ng#1384
(cherry picked from commit dracut-ng/dracut-ng@950475e)
A new file 90-image-dissect.rules was split from 99-systemd.rules to handle
gpt-root.

Since systemd/systemd@e3f6ae1

(cherry picked from commit dracut-ng/dracut-ng@fa17b6f)
Commit 68a09b4 ("fix(systemd-sysext): install new initrd-specific units")
correctly handled the name change for systemd-{confext,sysext}.service
units but left systemctl enablement intact. Put 'initrd.target.wants'
symlinks to the image (systemd>=258) and keep enabling services with
systemctl for older setups.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
(cherry picked from commit vittyvk/dracut-ng@8b993db)
Copy link
Collaborator

@tblume tblume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@aafeijoo-suse aafeijoo-suse merged commit 8a13fbd into openSUSE:SUSE/059 Aug 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants