diff options
Diffstat (limited to 'scripts/02-net.sh')
-rw-r--r-- | scripts/02-net.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/02-net.sh b/scripts/02-net.sh index 743d8b25a..1736e7468 100644 --- a/scripts/02-net.sh +++ b/scripts/02-net.sh @@ -7,8 +7,10 @@ Net () if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ] then + mkdir "${LIVE_CHROOT}"/etc/mkinitramfs + # Configuring initramfs for NFS -cat >> "${LIVE_ROOT}"/chroot/etc/mkinitramfs/initramfs.conf << EOF +cat >> "${LIVE_CHROOT}"/etc/mkinitramfs/initramfs.conf << EOF MODULES=netboot BOOT=nfs EOF @@ -27,12 +29,12 @@ EOF then # Creating tarball cd "${LIVE_ROOT}" && cd .. && \ - tar cfz netboot.tar.gz "${LIVE_ROOT}" && \ + tar cfz netboot.tar.gz `basename "${LIVE_ROOT}"` && \ mv netboot.tar.gz "${LIVE_ROOT}" else # Creating tarball (debug) cd "${LIVE_ROOT}" && cd .. && \ - tar cfvz netboot.tar.gz "${LIVE_ROOT}" && \ + tar cfvz netboot.tar.gz `basename "${LIVE_ROOT}"` && \ mv netboot.tar.gz "${LIVE_ROOT}" fi } |