diff --git a/embed.ipxe b/embed.ipxe index c3ffd7b..d2c1813 100644 --- a/embed.ipxe +++ b/embed.ipxe @@ -35,7 +35,7 @@ isset ${net${idx}/mac} || goto loop_done ######################## SET STATIC IP INFO HERE ############################# # Just copy/paste an entire line to add more # -echo Checking net${idx} +echo Checking net${idx} for a static IP config # node1.bitmessage.at iseq ${net${idx}/mac} 40:a8:f0:31:cc:58 && set ip-dev-name eno1 && set ip-addr 93.189.28.82 && set ip-gateway 93.189.28.81 && set ip-netmask 255.255.255.248 && set ip-dns 1.1.1.1 && set successful t && goto loop_done || @@ -77,7 +77,9 @@ inc idx && goto loop iseq ${successful} f && goto error_handler || # If on the other hand we're successful, then we construct the kernel ip= line -set ip-info ${ip-addr}::${ip-gateway}:${ip-netmask}::${ip-dev-name}:off:${ip-dns} +set ip-info ${ip-addr}::${ip-gateway}:${ip-netmask}::${ip-dev-name}:off:${ip-dns} && echo Static IP found + +echo ip-info ${ip-info} # And setup IPXE networking. @@ -138,10 +140,10 @@ goto loop # In case we want to... log?? Or do something else. :error_handler -echo "###########################################################" -echo "An unspecified error has occurred." -echo "The system will sleep for two minutes and then reboot." -echo "###########################################################" +echo ########################################################### +echo An unspecified error has occurred. +echo The system will sleep for two minutes and then reboot. +echo ########################################################### sleep 60 sleep 60 reboot @@ -197,6 +199,7 @@ goto static_ip_boot_setup :boot_all # Get accurate time so we can set the clock in kernel boot cmdline +echo Syncing time over NTP ntp pool.ntp.org || goto error_handler # check for EFI @@ -218,6 +221,7 @@ iseq ${platform} efi && goto is_efi || goto not_efi # using a custom CA that you import during build. :is_efi +echo Attempting EFI boot set initrd1 initrd=initrd.cpio isset initrd2 && clear initrd2 @@ -227,6 +231,7 @@ imgverify --signer images.sysdeploy.org initrd.cpio http://images.sysdeploy.org/ goto efi_and_not_efi :not_efi +echo Attempting legacy boot set initrd1 initrd=boot-initrd set initrd2 initrd=squashfs @@ -241,8 +246,6 @@ imgverify --signer images.sysdeploy.org boot-initrd http://images.sysdeploy.org/ kernel http://images.sysdeploy.org/${ubuntu-variant}/${arch-info}/boot-kernel || goto try_next_card imgverify --signer images.sysdeploy.org boot-kernel http://images.sysdeploy.org/${ubuntu-variant}/${arch-info}/boot-kernel.sig || goto error_handler -echo ip-info ${ip-info} - sleep 1 boot boot-kernel ${initrd1} ${initrd2} rootfstype=squashfs root=/squashfs ip=${ip-info} overlayroot=tmpfs:recurse=0 systemd.clock-usec=${unixtime:int32}000000 ds=nocloud-net;s=https://cloud-init.sysdeploy.org/apiv2?uuid=${uuid}&filetype= || goto error_handler