From: Richard Jones Date: Sun, 21 Mar 2010 21:23:47 +0000 (+0000) Subject: appliance: Run depmod to create modules.dep for the kernel. X-Git-Tag: 1.0.87~25 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4a065c99e450446e0a9293fa663f97dfed2aa405;p=libguestfs.git 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). --- diff --git a/appliance/make.sh.in b/appliance/make.sh.in index 9aa1e68..ab95da8 100755 --- a/appliance/make.sh.in +++ b/appliance/make.sh.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