copy-kmods.sh -> copy-initramfs.sh; do not copy kmods, just the initramfs for shutdown.
This commit is contained in:
parent
46f0398357
commit
e05ce506e8
@ -2,11 +2,5 @@
|
|||||||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
# 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.
|
# Copy the initramfs back to the new rootfs for proper shutdown.
|
||||||
cp /run/initramfs/live/boot/initrd.lz $NEWROOT/boot/initramfs-${KVER}.img
|
cp /run/initramfs/live/boot/initrd.lz $NEWROOT/boot/initramfs-${KVER}.img
|
@ -14,8 +14,7 @@ install() {
|
|||||||
inst /usr/bin/chroot
|
inst /usr/bin/chroot
|
||||||
inst /usr/bin/chmod
|
inst /usr/bin/chmod
|
||||||
inst /usr/bin/sed
|
inst /usr/bin/sed
|
||||||
inst /usr/sbin/depmod
|
|
||||||
inst_hook pre-pivot 01 "$moddir/adduser.sh"
|
inst_hook pre-pivot 01 "$moddir/adduser.sh"
|
||||||
inst_hook pre-pivot 02 "$moddir/display-manager-autologin.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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user