libguestfs/0005-RHEL-appliance-init-Run-depmod-a-to-rebuild-kernel-m.patch
Richard W.M. Jones 07bc9a99c5 Rebase to libguestfs 1.56.0
resolves: RHEL-81733
2025-06-12 08:58:36 +01:00

28 lines
696 B
Diff

From eab15d4fba9c82d1910d70bd58b080ccbd398923 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 13 May 2025 17:28:25 +0100
Subject: [PATCH] RHEL: appliance/init: Run depmod -a to rebuild kernel module
dependencies
---
appliance/init | 3 +++
1 file changed, 3 insertions(+)
diff --git a/appliance/init b/appliance/init
index 5d35a47dd..a3c5654ea 100755
--- a/appliance/init
+++ b/appliance/init
@@ -116,6 +116,9 @@ $UDEVD --daemon #--debug
udevadm trigger
udevadm settle --timeout=600
+# Recreate module dependencies (RHEL only)
+depmod -a
+
# Disk optimizations.
# Increase the SCSI timeout so we can read remote images.
shopt -s nullglob
--
2.47.1