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

    Ubuntu Image with both - UEFI and Legacy support

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    4
    12
    1.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.
    • O
      Oleg @george1421
      last edited by

      @george1421 We had to switch earlier, you’re right. I thought there is maybe possible to create a ubuntu image, which is supporting both hardware types. There are about 500 computers with legacy and the next hardware will run on uefi.

      If we reimage the 500 players, they won’t run as the uefi is not activated in the bios…

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Oleg As far as I know George is perfectly right here. Can’t think of a way to have an image that would run on legacy BIOS as well as on UEFI only machines. Partition schema is different…

        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
        • J
          jc35
          last edited by

          Hi,
          I have create a ubuntu image to boot in legacy and uefi mode, it works fine in virtualbox.
          But when I upload the image on FOG. When I deploy this image on a legacy computer, it dosen’t boot, but boot on uefi computer.
          The solution is grub-install, but is not include in FOS.
          How to put grub-install on FOS ?

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @jc35 said in Ubuntu Image with both - UEFI and Legacy support:

            The solution is grub-install, but is not include in FOS.
            How to put grub-install on FOS ?

            Well then you use FOS to chroot into the Ubuntu install after imaging and run grub-install there.

            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

            J 1 Reply Last reply Reply Quote 0
            • J
              jc35 @Sebastian Roth
              last edited by

              @sebastian-roth said in Ubuntu Image with both - UEFI and Legacy support:

              @jc35 said in Ubuntu Image with both - UEFI and Legacy support:

              The solution is grub-install, but is not include in FOS.
              How to put grub-install on FOS ?

              So far I have not succeeded, I have compiled GRUB on my pc, then I try to copy the files to the FOS, but dependency problem. We would have to figure out how to compile GRUB in STATIC and copy into FOS.

              Well then you use FOS to chroot into the Ubuntu install after imaging and run grub-install there.
              With chroot, this requires manual intervention unfortunately, I would like to do it automatically in the postinstall scripts.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @jc35 What I mean is mount the root partition of your Ubuntu system (that you deployed) and use chroot to switch into that system…

                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

                J 1 Reply Last reply Reply Quote 0
                • J
                  jc35 @Sebastian Roth
                  last edited by

                  @sebastian-roth said in Ubuntu Image with both - UEFI and Legacy support:

                  @jc35 What I mean is mount the root partition of your Ubuntu system (that you deployed) and use chroot to switch into that system…

                  Can we use chroot in a script?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @jc35 said in Ubuntu Image with both - UEFI and Legacy support:

                    Can we use chroot in a script?

                    Sure you can. But I suggest you try it out in a FOS debug session first for easier debugging. I think you need to bind mount special filesystems like /dev and maybe also /proc and /sys for grub-install to properly work in this chroot environment. Just use your favorit search engine to find hints on this topic on the web.

                    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

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jc35 @Sebastian Roth
                      last edited by

                      Hi,

                      @sebastian-roth said in Ubuntu Image with both - UEFI and Legacy support:

                      @jc35 said in Ubuntu Image with both - UEFI and Legacy support:

                      Can we use chroot in a script?

                      Sure you can. But I suggest you try it out in a FOS debug session first for easier debugging. I think you need to bind mount special filesystems like /dev and maybe also /proc and /sys for grub-install to properly work in this chroot environment. Just use your favorit search engine to find hints on this topic on the web.

                      It’s works fine.
                      Thanks you very much.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jc35 @jc35
                        last edited by

                        @jc35
                        mount /dev/sda1 /mnt
                        mount --bind /sys /mnt/sys
                        mount --bind /proc /mnt/proc
                        mount --bind /dev /mnt/dev
                        mount --bind /dev/pts /mnt/dev/pts

                        chroot /mnt ./usr/sbin/grub-install /dev/sda

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

                        211

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project