Compare commits

...

2 commits

Author SHA1 Message Date
pedro 54c90a4c55 pxe: add ref to dhcp proxy 2024-09-26 12:18:17 -03:00
pedro d7763f748b bugfix wrong try/except 2024-09-26 12:17:52 -03:00
2 changed files with 2 additions and 1 deletions

View file

@ -57,6 +57,7 @@ install_tftp() {
# from https://wiki.debian.org/PXEBootInstall#Simple_way_-_using_Dnsmasq
cat > /etc/dnsmasq.d/pxe-tftp <<END
port=0
# info: https://wiki.archlinux.org/title/Dnsmasq#Proxy_DHCP
dhcp-range=${nfs_allowed_lan%/*},proxy
dhcp-boot=pxelinux.0
pxe-service=x86PC,"Network Boot",pxelinux

View file

@ -276,7 +276,7 @@ def save_snapshot_in_disk(snapshot, path):
f.write(json.dumps(snapshot))
print(f"workbench: INFO: Snapshot written in fallback path '{fallback_filename}'")
except Exception as e:
print(f"workbench: ERROR: Failed to write in fallback path: {fallback_error}. Could not save snapshot locally.")
print(f"workbench: ERROR: Failed to write in fallback path: {fallback_filename}. Could not save snapshot locally.")
# TODO sanitize url, if url is like this, it fails
# url = 'http://127.0.0.1:8000/api/snapshot/'