diff options
author | Jon Langseth <jon.langseth@lilug.no> | 2014-04-13 18:20:32 +0200 |
---|---|---|
committer | Jon Langseth <jon.langseth@lilug.no> | 2014-04-13 18:20:32 +0200 |
commit | ebc4ddbe4a26e1e209b3fd8c0b523a47d5a0f73b (patch) | |
tree | 6b6fa47e3e6cc04e809936e2d7a87e6c5f01ed7b /tools | |
parent | 49737bc999c120bfbae2ab978fc12d465913c0e3 (diff) |
The PXE step of bootstrap was a bit broken
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make-pxeboot.sh | 10 | ||||
-rwxr-xr-x | tools/update-tools.sh | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tools/make-pxeboot.sh b/tools/make-pxeboot.sh index 3f1358d..25fe305 100755 --- a/tools/make-pxeboot.sh +++ b/tools/make-pxeboot.sh @@ -3,6 +3,9 @@ # This tool is to be executed by make-base-requires.sh # From tg14 we assume that TFTP server/PXE-boot server # is the Secondary/SMTP/TFTP box. +# +# TODO: Either rewrite this to be run at/from the bootstrapper, +# and/or add support for ${BASE} redirection.. apt-get install tftpd-hpa apt-get install nfs-kernel-server @@ -17,9 +20,12 @@ END /etc/init.d/tftpd-hpa restart mkdir -p /var/lib/tftpboot -cp -R pxe/* /var/lib/tftpboot -tools/fetch-debinstall.sh /var/lib/tftpboot/debian +# NOTE, this step depends on an SCP of basic content from the bootstrap... +# This should be done by tools/update-tools ... +cp -R ~/tgmanage/pxe/* /var/lib/tftpboot + +~/tgmanage/tools/fetch-debinstall.sh /var/lib/tftpboot/debian # tools/fetch-ubuntulive.sh <- this tool does not exist xD # NOTE! The pxe/ directory contains an 'ubuntu' menu... # The files required to booting Ubuntu installer or live diff --git a/tools/update-tools.sh b/tools/update-tools.sh index 99f712a..86f8125 100755 --- a/tools/update-tools.sh +++ b/tools/update-tools.sh @@ -19,3 +19,5 @@ scp -r include root@${PRIMARY}:tgmanage/ scp -r include root@${SECONDARY}:tgmanage/ scp -r clients root@${PRIMARY}:tgmanage/ scp -r clients root@${SECONDARY}:tgmanage/ + +scp -r pxe root@${SECONDARY}:tgmanage/ |