• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Shutdown after image deployment instead of reboot

Scheduled Pinned Locked Moved
FOG Problems
2
2
542
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    wasps.d
    last edited by Jun 29, 2021, 5:41 AM

    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 😄

    G 1 Reply Last reply Jun 29, 2021, 12:14 PM Reply Quote 0
    • G
      george1421 Moderator @wasps.d
      last edited by Jun 29, 2021, 12:14 PM

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

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        2/2
        Last post

      157

      Online

      12.1k

      Users

      17.3k

      Topics

      155.4k

      Posts
      Copyright © 2012-2024 FOG Project