Shutdown after image deployment instead of reboot
-
Hello there, is there any way I could shutdown after an image deployment instead of reboot?
I have checked the “Schedule with shutdown” option via the Web interface - didn’t seem like it worked.
Also, I tried the shutdown=1 under FOG General setting> KERNEL ARGS. Didn’t seem to work either. Not sure if I’m missing something out.Also, kindly pardon my lack of technical knowledge!
Additional Information:
- I’m booting via USB (Unable to use PXE booting due to limitation set by admin)
- FOG 1.5.9
- I tried shutting down via Web Interface after the OS loads. It worked. However, what I need is to shutdown immediately after deployment without the loading OS. Not sure if this is possible.
Thank you in advance
-
@wasps-d said in Shutdown after image deployment instead of reboot:
I’m booting via USB (Unable to use PXE booting due to limitation set by admin)
This is where the problem is. Using the USB booting, its getting the kernel parameters from the grub config and not iPXE (because iPXE isn’t being used). What you need to use is edit the grub.cfg file and add
shutdown=1
at the end of the kernel parameters for menu item 1.As below:
menuentry "1. FOG Image Deploy/Capture" { echo loading the kernel linux $myimage loglevel=$myloglevel initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 keymap= web=$myfogip/fog/ boottype=usb consoleblank=0 rootfstype=ext4 shutdown=1 echo loading the virtual hard drive initrd $myinits echo booting kernel... }
Understand this will tell the kernel to shut down after any imaging task.