diff options
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 +} |