summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-11 14:18:12 +0200
committerSimon Rettberg2022-05-11 14:18:12 +0200
commitf740b0fcd752a48452a805bfb0b7bf8da4d6bc58 (patch)
tree40d97d651302b6f6c34fcb8b00ffebb34354b34f
parent[SSUS] Move iPXE config around (diff)
downloadsetup-scripts-f740b0fcd752a48452a805bfb0b7bf8da4d6bc58.tar.gz
setup-scripts-f740b0fcd752a48452a805bfb0b7bf8da4d6bc58.tar.xz
setup-scripts-f740b0fcd752a48452a805bfb0b7bf8da4d6bc58.zip
[SSPS] Adapt to changed iPXE bwlp config
-rw-r--r--satellit_installer/includes/10-install_ipxe.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/satellit_installer/includes/10-install_ipxe.inc b/satellit_installer/includes/10-install_ipxe.inc
index 020e9ef..ec9ffea 100644
--- a/satellit_installer/includes/10-install_ipxe.inc
+++ b/satellit_installer/includes/10-install_ipxe.inc
@@ -2,12 +2,14 @@
install_ipxe() {
[ -z "$1" ] && perror "Call install_ipxe with target directory!"
git clone --branch openslx https://git.openslx.org/openslx-ng/ipxe.git "$1" || perror "Cloning ipxe repo failed"
- cp "$BASEDIR/static_files/pxelinux.0" "$1/" || perror "Could not copy pxelinux.0 to $1"
# Symlink for USB-Stick HTTP access
mkdir -p "$WWWDIR"
ln -s -f "$TFTPDIR" "$WWWDIR/tftp" || perror "Could not create symlink for tftp dir"
# Add bwlp config
install_files "ipxe-bwlp"
+ mkdir -p "/opt/openslx/ipxe/src/config/local/bwlp"
+ cp /opt/openslx/ipxe-bwlp-config/*.h "/opt/openslx/ipxe/src/config/local/bwlp/"
+ chown -R taskmanager:taskmanager "$1"
}
compile_ipxe() {
@@ -15,8 +17,8 @@ compile_ipxe() {
echo
[ -z "$1" ] && perror "Call compile_ipxe with target directory!"
cd "$1/src"
- make bin/undionly.kkkpxe
- chown -R taskmanager:www-data "$1"
+ sudo -u taskmanager -n make bin/undionly.kkkpxe
+ chown -R taskmanager:taskmanager "$1"
if [ "$ERR" -ne 0 ]; then
pwarning "*** Background compilation of iPXE failed."
else