about summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2013-05-21 21:51:47 +0200
committerJuan RP <xtraeme@gmail.com>2013-05-21 21:51:47 +0200
commitd188c1fe71474be40635b6e124c316ab6bed6819 (patch)
treebcc998d89c4e4503e450e87180265ebf3e464550 /mklive.sh.in
parent9f542b769d7a24c7a5c786903b1c5cae07349e66 (diff)
downloadhrmpf-d188c1fe71474be40635b6e124c316ab6bed6819.tar.gz
hrmpf-d188c1fe71474be40635b6e124c316ab6bed6819.tar.xz
hrmpf-d188c1fe71474be40635b6e124c316ab6bed6819.zip
mklive: copy kmods from temp rootfs to the final rootfs; remove redundant stuff.
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in19
1 files changed, 4 insertions, 15 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 0c8c708..0e6300c 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -132,12 +132,6 @@ install_packages() {
     systemd-nspawn -D $ROOTFS xbps-reconfigure -f systemd >>$LOGFILE 2>&1
 
     # Enable some services if found.
-    if [ -f $ROOTFS/usr/lib/systemd/system/gdm.service ]; then
-        systemd-nspawn -D $ROOTFS systemctl enable gdm.service >>$LOGFILE 2>&1
-    fi
-    if [ -f $ROOTFS/usr/lib/systemd/system/avahi-daemon.service ]; then
-        systemd-nspawn -D $ROOTFS systemctl enable avahi-daemon.service >>$LOGFILE 2>&1
-    fi
     if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then
         systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1
     fi
@@ -160,15 +154,10 @@ generate_initramfs() {
 
 copy_kernel_and_modules() {
     cp -a $ROOTFS/kernel_temp/boot/vmlinuz-$KERNELVERSION $BOOT_DIR/vmlinuz
-    # Copy network modules required by the network install.
-    mkdir -p $ROOTFS/usr/lib/modules/$KERNELVERSION/kernel/drivers
-    cp -a $ROOTFS/kernel_temp/usr/lib/modules/$KERNELVERSION/kernel/drivers/net \
-        $ROOTFS/usr/lib/modules/$KERNELVERSION/kernel/drivers
-    cp $ROOTFS/kernel_temp/usr/lib/modules/$KERNELVERSION/modules.* \
-        $ROOTFS/usr/lib/modules/$KERNELVERSION
-    # re-run depmod.
-    depmod -b $ROOTFS/usr $KERNELVERSION
-
+    # Copy kernel modules to the rootfs.
+    mkdir -p $ROOTFS/usr/lib/modules
+    cp -a $ROOTFS/kernel_temp/usr/lib/modules/$KERNELVERSION \
+        $ROOTFS/usr/lib/modules
     # remove temporary rootfs.
     rm -rf $ROOTFS/kernel_temp
 }