how grub.cfg under /boot/efi/EFI already has information about my root filesystem

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












When I cat /boot/efi/EFI/ubuntu/grub.cfg I can see that it already has information about my root filesystem including root filesystem uuid.



I checked fstab and it is indeed uuid of a root filesystem.



I am trying to understand at what point it found and permanently wrote root filesystem uuid to a file in efi filesystem, and why it needs to do it in the first place, since esp is responsible for finding and loading a bootloader (grub), and it has nothing to do with actual root filesystem uuid.



I have read this How does a kernel mount the root partition? and from my understanding initramfs is used to find and mount root filesystem but then why root filesystem uuid is written into a file under efi filesystem?



search.fs_uuid 31592224-ea65-4f8d-bbb8-4d370f306d62 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg









share|improve this question



























    up vote
    0
    down vote

    favorite












    When I cat /boot/efi/EFI/ubuntu/grub.cfg I can see that it already has information about my root filesystem including root filesystem uuid.



    I checked fstab and it is indeed uuid of a root filesystem.



    I am trying to understand at what point it found and permanently wrote root filesystem uuid to a file in efi filesystem, and why it needs to do it in the first place, since esp is responsible for finding and loading a bootloader (grub), and it has nothing to do with actual root filesystem uuid.



    I have read this How does a kernel mount the root partition? and from my understanding initramfs is used to find and mount root filesystem but then why root filesystem uuid is written into a file under efi filesystem?



    search.fs_uuid 31592224-ea65-4f8d-bbb8-4d370f306d62 root 
    set prefix=($root)'/boot/grub'
    configfile $prefix/grub.cfg









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      When I cat /boot/efi/EFI/ubuntu/grub.cfg I can see that it already has information about my root filesystem including root filesystem uuid.



      I checked fstab and it is indeed uuid of a root filesystem.



      I am trying to understand at what point it found and permanently wrote root filesystem uuid to a file in efi filesystem, and why it needs to do it in the first place, since esp is responsible for finding and loading a bootloader (grub), and it has nothing to do with actual root filesystem uuid.



      I have read this How does a kernel mount the root partition? and from my understanding initramfs is used to find and mount root filesystem but then why root filesystem uuid is written into a file under efi filesystem?



      search.fs_uuid 31592224-ea65-4f8d-bbb8-4d370f306d62 root 
      set prefix=($root)'/boot/grub'
      configfile $prefix/grub.cfg









      share|improve this question















      When I cat /boot/efi/EFI/ubuntu/grub.cfg I can see that it already has information about my root filesystem including root filesystem uuid.



      I checked fstab and it is indeed uuid of a root filesystem.



      I am trying to understand at what point it found and permanently wrote root filesystem uuid to a file in efi filesystem, and why it needs to do it in the first place, since esp is responsible for finding and loading a bootloader (grub), and it has nothing to do with actual root filesystem uuid.



      I have read this How does a kernel mount the root partition? and from my understanding initramfs is used to find and mount root filesystem but then why root filesystem uuid is written into a file under efi filesystem?



      search.fs_uuid 31592224-ea65-4f8d-bbb8-4d370f306d62 root 
      set prefix=($root)'/boot/grub'
      configfile $prefix/grub.cfg






      filesystems grub






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 mins ago

























      asked 15 mins ago









      MaverickD

      1745




      1745

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478299%2fhow-grub-cfg-under-boot-efi-efi-already-has-information-about-my-root-filesyste%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478299%2fhow-grub-cfg-under-boot-efi-efi-already-has-information-about-my-root-filesyste%23new-answer', 'question_page');

          );

          Post as a guest













































































          zx7KgOd 1S97 TdjZNGkLQn,2ShuBHcV0l7 4sK6pv,qZT 9Nl5dV
          Q,GCVunO8wA0jny,NVL5k

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS