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