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

    GRUB Config Lost After Imaging

    Scheduled Pinned Locked Moved
    Linux Problems
    2
    2
    321
    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.
    • B
      bramen
      last edited by

      Recently when applying a master image to identical hardware, the destination system will boot to a GRUB> rescue prompt. I need to type the commands below to make the system boot reliably again. The image is Kali Linux. This has not been an issue in the past and I have not changed my process. Is it possible to ensure GRUB maintains its config after imaging? Any help is greatly appreciated.

      AT THE GRUB PROMPT:
      set root=(hd0,gpt2)
      set prefix=(hd0,gpt2)/boot/grub
      insmod normal
      normal
      ONCE THE OS BOOTS:
      grub-install /dev/sda
      update-initramfs -u
      update-grub

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @bramen
        last edited by

        @bramen I can’t speak so much to the grub stuff.

        What I can tell you is that FOG has the ability to run a bash script after the image has been pushed to the target computer and before the computer reboots after completing the deployment. You can use this feature to tweak settings on the target computer before the computer is first booted into the target OS. This is used commonly with the windows environment to place hardware specific drivers onto the target computer that is used during the OOBE/WinSetup phase of windows. In linux we’ve used these scripts to rename linux computer and do some post install activities.

        The FOG imaging agent is Linux based so it can’t directly interact with ms windows, but it can leave bread crumbs behind for windows to act upon. For linux target computers it can do more things. I can’t say if it can run grub commands though.

        The concept of the fog post install script is that the script will need to mount the target computer media/file system, do whatever is needed then disconnect from the target media.

        For windows I have a tutorial here: https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed While this is windows specific the setup program would be very similar for linux.

        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
        • First post
          Last post

        254

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project