Unified · Split
| @@ -7,3 +7,6 @@ KVER=$(uname -r) · 6 unmodified lines | ||
| 7 | 7 | mkdir -p $NEWROOT/usr/lib/modules |
| 8 | 8 | cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/ |
| 9 | 9 | depmod -b $NEWROOT/usr |
| 10 | + | |
| 11 | +# Copy the initramfs back to the new rootfs for proper shutdown. | |
| 12 | +cp /run/initramfs/live/boot/initrd.lz $NEWROOT/boot/initramfs-${KVER}.img | |