mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
appliance: Run depmod to create modules.dep for the kernel.
Since we disabled running new-kernel-pkg in febootstrap, this has meant that the normal appliance has not had a modules.dep file. (Supermin was unaffected by this).
This commit is contained in:
@@ -41,6 +41,11 @@ if [ "@DIST@" = "REDHAT" ]; then
|
||||
|
||||
@FEBOOTSTRAP@ $packages -u @UPDATES@ @REPO@ initramfs @MIRROR@
|
||||
|
||||
# Create modules.dep. This is only used in the normal appliance
|
||||
# (not supermin).
|
||||
kversion=$(basename initramfs/lib/modules/*)
|
||||
@FEBOOTSTRAP_RUN@ initramfs -- /sbin/depmod -a $kversion
|
||||
|
||||
# /sysroot is where the guest root filesystem will be mounted.
|
||||
@FEBOOTSTRAP_RUN@ initramfs -- mkdir -p --mode=0777 /sysroot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user