Skip to content

Commit

Permalink
fix: make iso-scan trigger udev events
Browse files Browse the repository at this point in the history
Fixes dracutdevs#2183

(cherry picked from commit 7b530f2)
  • Loading branch information
0x5c authored and aafeijoo-suse committed Jun 15, 2023
1 parent 19e2a50 commit 476b1db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/90dmsquash-live/iso-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ do_iso_scan() {
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 --action=add > /dev/null 2>&1
ln -s "$dev" /run/initramfs/isoscandev
rm -f -- "$job"
exit 0
Expand Down

0 comments on commit 476b1db

Please sign in to comment.