libguestfs/0008-RHEL-appliance-init-Run-depmod-a-to-rebuild-kernel-m.patch
Richard W.M. Jones dfca9e5c9b Rebase to libguestfs 1.56.1
resolves: RHEL-81733
Add /etc/fstab, lsblk and blkid to verbose output
resolves: RHEL-106490
2025-07-30 11:20:24 +01:00

28 lines
696 B
Diff

From 4490b82bc44ef2fe8b5619dfaf5debc93d8e32d4 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 62526ac77..c94f50079 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