dracut/copy-kmods.sh: copy the initramfs to the new rootfs for proper shutdown.
This commit is contained in:
parent
2ce7cd8251
commit
c6f15e7299
@ -7,3 +7,6 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user