Open kristianronningen opened 4 months ago
Presumably if the pdf upload failed you would also want it to abort the auto reboot so you could still manually retrieve the reports.
Are you using FTP to upload the pdfs?
Reason I ask is that I'm currently working In that section of the code adding a kernel option to exclude the boot disc (if fat/16/32/exfat) from being wiped in a autonuke, so now would be a good time to add a --autoreboot option (if PDF transfers were successful).
If the report upload failed, it would make sense to abort the auto reboot yes. We use lftp options to upload. See https://git.nuug.no/nuug-public/skolelinux-netboot/-/blob/master/roles/netboot/tasks/main.yml#L63 for the kernel options we pass.
@kristianronningen The command shredos_autoreboot=enable
can now be added to the kernel command line PR #256 as from version v2024.02.2_26.0_x86-64_0.37 onwards, which will be release shortly.
Similar to the current
--autopoweroff
option to nwipe, I'd love to have an option such as--autoreboot
. We use netboot to prepare laptops (wipe + install). Our netboot default boot is the fully automated installation of an OS. In the same menu we have the ShredOS --autonuke option.Our goal is to manually select the correct wipe option during netboot, have the disk wiped, reports uploaded, and then an automatic reboot, causing the default OS install boot option to run right away.