-
Notifications
You must be signed in to change notification settings - Fork 400
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
iso-scan.sh is racing with udev on newer kernels #2183
Comments
Kind of wondering if some of the "fallbacks" introduced in #2130 would inadvertently would help here as well. |
(from the void-mklive issue)
Unfortunately, both of these have no effect |
Tried that too just now, no change observed A patch was made from the PR and applied on top of dracut 59. |
I'm still trying to find where in dmsquash (or other module) is the check for the label happening, I want to see if adding settle/trigger right before that point helps. |
@0x5c poke around modules.d/90dmsquash-live/parse-dmsquash-live.sh or modules.d/90dmsquash-live/dmsquash-live-genrules.sh |
The isofile is set up as a loop device here: |
I just now tried 3 images with added It seems to me like --- a/modules.d/90dmsquash-live/iso-scan.sh
+++ b/modules.d/90dmsquash-live/iso-scan.sh
@@ -22,6 +22,8 @@
mount -t auto -o ro "$dev" "/run/initramfs/isoscan" || continue
if [ -f "/run/initramfs/isoscan/$isofile" ]; then
losetup -f "/run/initramfs/isoscan/$isofile"
+ udevadm trigger
ln -s "$dev" /run/initramfs/isoscandev
rm -f -- "$job"
exit 0 |
The fips module seems to wait until the path settles - https://github.com/dracutdevs/dracut/blob/master/modules.d/01fips/fips.sh#L32 Perhaps for dmsquash-live this is not necessary as there is a settle call in https://github.com/dracutdevs/dracut/blob/master/modules.d/90dmsquash-live/dmsquash-live-root.sh#L88 . This seems a bit odd place to me to call settle. @0x5c can you perhaps try this more specific line instead ?
Are you planning to upload a PR later or ? Thank you very much . |
@0x5c Please do, and let us know if you need help with making the PR. |
Made the PR, #2196 |
This fixes a bug in the live images when booted from grub as loopback (void-linux/void-mklive#294). dracutdevs/dracut#2183 dracutdevs/dracut#2196
This fixes a bug in the live images when booted from grub as loopback (void-linux/void-mklive#294). dracutdevs/dracut#2183 dracutdevs/dracut#2196
This fixes a bug in the live images when booted from grub as loopback (void-linux/void-mklive#294). dracutdevs/dracut#2183 dracutdevs/dracut#2196
Fixes dracutdevs#2183 (cherry picked from commit 7b530f2)
Redhat bug: https://bugzilla.redhat.com/show_bug.cgi?id=2131852
Void Linux: void-linux/void-mklive#294
Seems there is a lot of value in cross referencing bugs and discussing it upstream.
Issue could be related to a change in kernel 5.19+ which leads to a udev race to figure out the label of the ISO.
Intermittent. rd.live.debug makes successful boots possible/more reliable.
CC @FGrose @pvalena @pmensik @0x5c @splate07
The text was updated successfully, but these errors were encountered: