forked from dracutdevs/dracut
-
Notifications
You must be signed in to change notification settings - Fork 14
Backport fixes to 059 #433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aafeijoo-suse
merged 9 commits into
openSUSE:SUSE/059
from
aafeijoo-suse:059-upstream-fixes-15
Aug 4, 2025
Merged
Backport fixes to 059 #433
aafeijoo-suse
merged 9 commits into
openSUSE:SUSE/059
from
aafeijoo-suse:059-upstream-fixes-15
Aug 4, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)
tblume
approved these changes
Aug 1, 2025
Collaborator
tblume
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
04a6bea and c2c6e2d are required for the upcoming systemd-v258