PartialVolume / shredos.x86_64

Shredos Disk Eraser 64 bit for all Intel 64 bit processors as well as processors from AMD and other vendors which make compatible 64 bit chips. ShredOS - Secure disk erasure/wipe
Other
1.27k stars 54 forks source link

Option to reboot after wipe is finished (--autoreboot) #225

Open kristianronningen opened 4 months ago

kristianronningen commented 4 months ago

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.

PartialVolume commented 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?

PartialVolume commented 4 months ago

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).

kristianronningen commented 4 months ago

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.

PartialVolume commented 1 month ago

@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.