Bläddra i källkod

dracut/copy-kmods.sh: copy the initramfs to the new rootfs for proper shutdown.

Juan RP 12 år sedan
förälder
incheckning
c6f15e7299
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      dracut/copy-kmods.sh

+ 3 - 0
dracut/copy-kmods.sh

@@ -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