Print more verbose info
All checks were successful
buildbot/travis_bionic Build done.
buildbot/multibuild_parent Build done.
buildbot/ipxe_x86_build_and_release Build done.

This commit is contained in:
Peter Šurda 2023-07-27 10:51:38 +08:00
parent 73a2e56742
commit 79c62dd58b
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -35,7 +35,7 @@ isset ${net${idx}/mac} || goto loop_done
######################## SET STATIC IP INFO HERE ############################# ######################## SET STATIC IP INFO HERE #############################
# Just copy/paste an entire line to add more # 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 # 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 || 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 || iseq ${successful} f && goto error_handler ||
# If on the other hand we're successful, then we construct the kernel ip= line # 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. # And setup IPXE networking.
@ -138,10 +140,10 @@ goto loop
# In case we want to... log?? Or do something else. # In case we want to... log?? Or do something else.
:error_handler :error_handler
echo "###########################################################" echo ###########################################################
echo "An unspecified error has occurred." echo An unspecified error has occurred.
echo "The system will sleep for two minutes and then reboot." echo The system will sleep for two minutes and then reboot.
echo "###########################################################" echo ###########################################################
sleep 60 sleep 60
sleep 60 sleep 60
reboot reboot
@ -197,6 +199,7 @@ goto static_ip_boot_setup
:boot_all :boot_all
# Get accurate time so we can set the clock in kernel boot cmdline # 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 ntp pool.ntp.org || goto error_handler
# check for EFI # 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. # using a custom CA that you import during build.
:is_efi :is_efi
echo Attempting EFI boot
set initrd1 initrd=initrd.cpio set initrd1 initrd=initrd.cpio
isset initrd2 && clear initrd2 isset initrd2 && clear initrd2
@ -227,6 +231,7 @@ imgverify --signer images.sysdeploy.org initrd.cpio http://images.sysdeploy.org/
goto efi_and_not_efi goto efi_and_not_efi
:not_efi :not_efi
echo Attempting legacy boot
set initrd1 initrd=boot-initrd set initrd1 initrd=boot-initrd
set initrd2 initrd=squashfs 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 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 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 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 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