Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kristianronningen opened this issue Feb 25, 2024 · 4 comments
Open

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

kristianronningen opened this issue Feb 25, 2024 · 4 comments

Comments

@kristianronningen
Copy link

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants