diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:20 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:20 +0200 |
commit | 57cf927e8b36655351399184fecec51552feffe5 (patch) | |
tree | 537fb1e5e337d2074c7ea25c506eedbbbf6afdf9 /scripts/02-net.sh | |
parent | eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5 (diff) | |
download | vyos-live-build-57cf927e8b36655351399184fecec51552feffe5.tar.gz vyos-live-build-57cf927e8b36655351399184fecec51552feffe5.zip |
Adding live-package 0.99.1-1.
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 } |