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

FOG doesn’t copy NVRAM from cloned machine to the new machine

Scheduled Pinned Locked Moved Solved
FOG Problems
3
21
2.7k
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.
  • S
    Sebastian Roth Moderator
    last edited by Jan 30, 2020, 5:03 PM

    @marted Try the latest rEFInd version you find here: http://sourceforge.net/projects/refind/files/0.11.4/refind-bin-0.11.4.zip/download

    See if those work better than the ones we have as default.

    After I deactivated ALL entries and still see the same menu on boot! Do I have to run some command to apply the changes in refind.conf file or it applies the changes every time it boots?

    Changes should be active on the next boot as soon as you save the file. Though I haven’t played much with the config lately. Maybe there is some option that I have forgotten about that you need to enable/add/change/remove to make those boot entries work. @george1421 would you have an idea?

    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

    1 Reply Last reply Reply Quote 0
    • M
      marted
      last edited by Jan 30, 2020, 5:09 PM

      @Sebastian, from the downloaded zip file, do I need just to find the .efi file x64 and replace the old one on the server with it? what about the .conf example in the zip? Do I have to copy it also to the server replacing the old one?

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Jan 30, 2020, 5:36 PM

        @marted I would say use the .efi file should do. If you are keen you can copy the .conf over as well but using a different name and diff the two files.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        M 1 Reply Last reply Jan 30, 2020, 6:55 PM Reply Quote 0
        • M
          marted
          last edited by Jan 30, 2020, 6:19 PM

          @Sebastian I tried your other suggestion for executing a postscript and I came with this command I executed in debug session on a client and it works 🙂
          For me, it will be a better solution instead to mess up with rEFInd boot.
          Now I need just to figure out how to add the script and where

          efibootmgr --create --disk /dev/sda --part 1 --loader ‘\EFI\grub2win\g2bootmgr\gnugrub.kernel64.efi’ --label “Grub2Win”

          1 Reply Last reply Reply Quote 0
          • M
            marted @Sebastian Roth
            last edited by Jan 30, 2020, 6:55 PM

            @Sebastian to run this command with efibootmgr, do I need just to create a bash script, make it executable and put it in /images/postdownloadscripts. ?

            G 1 Reply Last reply Jan 30, 2020, 8:44 PM Reply Quote 0
            • G
              george1421 Moderator @marted
              last edited by Jan 30, 2020, 8:44 PM

              @marted The proper way is to create a bash script and place it in /images/postdownload directory and then link (call) it into the fog.postdownload script. If you have different hardware or images, you can also create a conditional if statement so that it only calls this command if the image name matches a certain image name.

              I have examples of post download scripts in the tutorial forum. Some are windows focused but the concepts are the same.

              https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script

              https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection

              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!

              M 2 Replies Last reply Jan 30, 2020, 9:41 PM Reply Quote 0
              • M
                marted @george1421
                last edited by Sebastian Roth Jan 31, 2020, 12:49 AM Jan 30, 2020, 9:41 PM

                @george1421 Thank you so much!

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Jan 31, 2020, 6:51 AM

                  @marted said in FOG doesn’t copy NVRAM from cloned machine to the new machine:

                  I tried your other suggestion for executing a postscript and I came with this command I executed in debug session on a client and it works

                  Nice. Well you might go with that for now and come back to other solutions when you feel like it.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • M
                    marted @george1421
                    last edited by Jan 31, 2020, 5:02 PM

                    @george1421 @Sebastian-Roth I did the changes, just please confirm that everything I did is correct :

                    1. I created a file with permission 775 on the server FOG in /images/postdownloadscripts called fog.grub2win
                    #!/bin/bash
                    /bin/efibootmgr --create --disk /dev/sda --part 1 --loader ‘\EFI\grub2win\g2bootmgr\gnugrub.kernel64.efi’ --label “Grub2Win”
                    
                    1. I added the script in fog.postdownload
                    #!/bin/bash
                    ## This file serves as a starting point to call your custom postimaging scripts.
                    ## <SCRIPTNAME> should be changed to the script you're planning to use.
                    ## Syntax of post download scripts are
                    . ${postdownpath}fog.grub2win
                    

                    is everything OK?

                    G 1 Reply Last reply Jan 31, 2020, 5:07 PM Reply Quote 0
                    • G
                      george1421 Moderator @marted
                      last edited by george1421 Jan 31, 2020, 11:08 AM Jan 31, 2020, 5:07 PM

                      @marted Yes, I would make a comment and add a debugPause in your script so you can see it run something like this.

                      #!/bin/bash
                      echo Updating the Grub boot manager
                      debugPause
                      
                      /bin/efibootmgr --create --disk /dev/sda --part 1 --loader ‘\EFI\grub2win\g2bootmgr\gnugrub.kernel64.efi’ --label “Grub2Win”
                      
                      echo Grub configuration has been updated
                      debugPause
                      
                      

                      The echo statement will allow you to see while the post install script is running that your efibootmgr code is running. The debugPause will pause the code while running in debug mode.

                      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
                      • M
                        marted
                        last edited by marted Jan 31, 2020, 11:17 AM Jan 31, 2020, 5:17 PM

                        @george1421 thank you !

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Jan 31, 2020, 5:45 PM

                          @marted Looking good.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

                          209

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.4k

                          Posts
                          Copyright © 2012-2024 FOG Project