diff options
author | Richard Jones <rjones@redhat.com> | 2010-03-21 21:23:47 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-03-22 10:41:16 +0000 |
commit | 4a065c99e450446e0a9293fa663f97dfed2aa405 (patch) | |
tree | e9fb4fe9746df148c1dacf401da7685ed892859a /appliance/make.sh.in | |
parent | 7581672c7893fd392ca10b47f044af327011f502 (diff) | |
download | libguestfs-4a065c99e450446e0a9293fa663f97dfed2aa405.tar.gz libguestfs-4a065c99e450446e0a9293fa663f97dfed2aa405.tar.xz libguestfs-4a065c99e450446e0a9293fa663f97dfed2aa405.zip |
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).
Diffstat (limited to 'appliance/make.sh.in')
-rwxr-xr-x | appliance/make.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/appliance/make.sh.in b/appliance/make.sh.in index 9aa1e68c..ab95da8e 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 |