• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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
    last edited by Dec 3, 2019, 11:12 AM

    Hey guys,

    in the past we tried to use an ubuntu Image for your (in most cases) fujitsu computers with legacy bios and that worked good. But now we are forced to switch to efi boot since more and more hardware doesn’t support legacy bios anymore and only running on uefi.
    So my question is, is it possible to use one ubuntu image which is running on computers with legacy bios and with uefi as well?
    Otherwise we will have to distribute two separate images one with uefi and the other one with legacy.

    I found that it’s possible to convert an ubuntu system from legacy to uefi but as I understand, that system won’t boot into legacy anymore.
    Anyone with the same problem or maybe with a solution?

    Thanks in advance!

    G 1 Reply Last reply Dec 3, 2019, 11:32 AM Reply Quote 0
    • G
      george1421 Moderator @Oleg
      last edited by Dec 3, 2019, 11:32 AM

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

      Otherwise we will have to distribute two separate images one with uefi and the other one with legacy.

      I can’t speak to ubuntu, but for windows this is what we must do. We have one image for bios and one for uefi. It not a nice solution but the easiest to maintain and will avoid any future upgrade issues (again I’m talking future Windows upgrades).

      If you don’t want to have 2 images on your campus it may be time to switch everything to uefi as they are reimaged. Most current systems will not downgrade to bios anymore so uefi is the only solution. It may be time to just leave bios behind.

      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!

      O 1 Reply Last reply Dec 3, 2019, 3:10 PM Reply Quote 0
      • O
        Oleg @george1421
        last edited by Dec 3, 2019, 3:10 PM

        @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 Dec 3, 2019, 4:46 PM

          @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 Sep 3, 2021, 8:39 AM

            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 Sep 3, 2021, 6:26 PM

              @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 Sep 7, 2021, 12:22 PM Reply Quote 0
              • J
                jc35 @Sebastian Roth
                last edited by Sep 7, 2021, 12:22 PM

                @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 Sep 7, 2021, 1:31 PM

                  @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 Sep 7, 2021, 1:54 PM Reply Quote 0
                  • J
                    jc35 @Sebastian Roth
                    last edited by Sep 7, 2021, 1:54 PM

                    @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 Sep 7, 2021, 5:49 PM

                      @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 Sep 8, 2021, 9:25 AM Reply Quote 0
                      • J
                        jc35 @Sebastian Roth
                        last edited by Sep 8, 2021, 9:25 AM

                        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 Sep 8, 2021, 10:26 AM Reply Quote 0
                        • J
                          jc35 @jc35
                          last edited by Sep 8, 2021, 10:26 AM

                          @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

                          207

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project