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 | eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5 (patch) | |
tree | 18151396add367542887fe7f017025538e3318d6 /scripts/02-net.sh | |
download | vyos-live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.tar.gz vyos-live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.zip |
Adding live-package 0.99-1.
Diffstat (limited to 'scripts/02-net.sh')
-rw-r--r-- | scripts/02-net.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/02-net.sh b/scripts/02-net.sh new file mode 100644 index 000000000..743d8b25a --- /dev/null +++ b/scripts/02-net.sh @@ -0,0 +1,38 @@ +# scripts/02-net.sh + +Net () +{ + # Installing smbfs + chroots "apt-get install --yes smbfs" + + if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ] + then + # Configuring initramfs for NFS +cat >> "${LIVE_ROOT}"/chroot/etc/mkinitramfs/initramfs.conf << EOF +MODULES=netboot +BOOT=nfs +EOF + fi + + # Installing syslinux + Syslinux net + + # Installing linux-image + Linuximage net + + # Installing memtest + Memtest net + + if [ -z "${LIVE_VERBOSE}" ] + then + # Creating tarball + cd "${LIVE_ROOT}" && cd .. && \ + tar cfz netboot.tar.gz "${LIVE_ROOT}" && \ + mv netboot.tar.gz "${LIVE_ROOT}" + else + # Creating tarball (debug) + cd "${LIVE_ROOT}" && cd .. && \ + tar cfvz netboot.tar.gz "${LIVE_ROOT}" && \ + mv netboot.tar.gz "${LIVE_ROOT}" + fi +} |