Blame 0001-fix-make-iso-scan-trigger-udev-events.patch

Adam Williamson e21935
From 7b530f26368d723dcc34fb67d687c60009b06412 Mon Sep 17 00:00:00 2001
Adam Williamson e21935
From: 0x5c <dev@0x5c.io>
Adam Williamson e21935
Date: Thu, 9 Feb 2023 05:26:30 -0500
Adam Williamson e21935
Subject: [PATCH] fix: make iso-scan trigger udev events
Adam Williamson e21935
Adam Williamson e21935
Fixes #2183
Adam Williamson e21935
---
Adam Williamson e21935
 modules.d/90dmsquash-live/iso-scan.sh | 1 +
Adam Williamson e21935
 1 file changed, 1 insertion(+)
Adam Williamson e21935
Adam Williamson e21935
diff --git a/modules.d/90dmsquash-live/iso-scan.sh b/modules.d/90dmsquash-live/iso-scan.sh
Adam Williamson e21935
index 886d2303..fa06b33c 100755
Adam Williamson e21935
--- a/modules.d/90dmsquash-live/iso-scan.sh
Adam Williamson e21935
+++ b/modules.d/90dmsquash-live/iso-scan.sh
Adam Williamson e21935
@@ -22,6 +22,7 @@ do_iso_scan() {
Adam Williamson e21935
         mount -t auto -o ro "$dev" "/run/initramfs/isoscan" || continue
Adam Williamson e21935
         if [ -f "/run/initramfs/isoscan/$isofile" ]; then
Adam Williamson e21935
             losetup -f "/run/initramfs/isoscan/$isofile"
Adam Williamson e21935
+            udevadm trigger --action=add > /dev/null 2>&1
Adam Williamson e21935
             ln -s "$dev" /run/initramfs/isoscandev
Adam Williamson e21935
             rm -f -- "$job"
Adam Williamson e21935
             exit 0
Adam Williamson e21935
-- 
Adam Williamson e21935
2.41.0
Adam Williamson e21935