Przeglądaj źródła

copy-kmods.sh -> copy-initramfs.sh; do not copy kmods, just the initramfs for shutdown.

Juan RP 12 lat temu
rodzic
commit
e05ce506e8
2 zmienionych plików z 1 dodań i 8 usunięć
  1. 0 6
      dracut/copy-initramfs.sh
  2. 1 2
      dracut/module-setup.sh

+ 0 - 6
dracut/copy-kmods.sh → dracut/copy-initramfs.sh

@@ -2,11 +2,5 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
-# Copy all modules from initramfs to new rootfs.
-KVER=$(uname -r)
-mkdir -p $NEWROOT/usr/lib/modules
-cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/
-depmod -b $NEWROOT/usr
-
 # Copy the initramfs back to the new rootfs for proper shutdown.
 cp /run/initramfs/live/boot/initrd.lz $NEWROOT/boot/initramfs-${KVER}.img

+ 1 - 2
dracut/module-setup.sh

@@ -14,8 +14,7 @@ install() {
     inst /usr/bin/chroot
     inst /usr/bin/chmod
     inst /usr/bin/sed
-    inst /usr/sbin/depmod
     inst_hook pre-pivot 01 "$moddir/adduser.sh"
     inst_hook pre-pivot 02 "$moddir/display-manager-autologin.sh"
-    inst_hook pre-pivot 03 "$moddir/copy-kmods.sh"
+    inst_hook pre-pivot 03 "$moddir/copy-initramfs.sh"
 }