Add netboot generator script

This commit is contained in:
Michael Aldridge
2016-03-12 21:58:30 -06:00
parent 76ea7500b2
commit 414ebf318f
18 changed files with 444 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
# Copy the initramfs back to the new rootfs for proper shutdown.
KVER=$(uname -r)
if [ -x /usr/bin/systemctl ]; then
cp /run/initramfs/live/boot/initrd $NEWROOT/boot/initramfs-${KVER}.img
fi