Compare commits

..

No commits in common. "c2848c265a5bfa79e9e9c9f2a6ce363d31d45435" and "32917338a8d30bdf3c5d1f5a0f8bb4677a700428" have entirely different histories.

2 changed files with 4 additions and 10 deletions

View File

@ -269,13 +269,7 @@ stty -echo # Do not show what we type in terminal so it does not meddle with our
dmesg -n 1 # Do not report *useless* system messages to the terminal
# clearly specify the right working directory, used in the python script as os.getcwd()
cd /mnt
# detect pxe env
if [ -d /run/live/medium ]; then
config_path='/run/live/medium/settings.ini'
else
config_path='/mnt/settings.ini'
fi
pipenv run python /opt/workbench/workbench-script.py --config "\${config_path}"
pipenv run python /opt/workbench/workbench-script.py --config "/mnt/settings/settings.ini"
stty echo
END
#TODO add some useful commands

View File

@ -10,7 +10,7 @@ set -x
install_dependencies() {
apt update
apt install -y wget dnsmasq nfs-kernel-server rsync
apt install -y wget dnsmasq nfs-kernel-server
}
backup_file() {
@ -32,7 +32,7 @@ END
if [ ! -f "${nfs_path}/settings.ini" ]; then
if [ -f "settings.ini" ]; then
cp settings.ini "${nfs_path}/settings.ini"
ln -sfv "$(pwd)/settings.ini"" ${nfs_path}/settings.ini"
else
echo "ERROR: ../settings.ini does not exist yet, cannot read config from there. You can take inspiration with file ../settings.ini.example"
exit 1
@ -56,7 +56,7 @@ END
extract_live_parts_for_tftp() {
cp -fv "${PXE_DIR}/../iso/staging/live/vmlinuz" "${tftp_path}/"
cp -fv "${PXE_DIR}/../iso/staging/live/initrd" "${tftp_path}/"
rsync -av "${PXE_DIR}/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/"
ln -sfv "${nfs_path}/live/" "${PXE_DIR}/../iso/staging/live/filesystem.squashfs"
}
install_netboot() {