Skip to main content
Topic: /mnt/boot: Do we need to rely on Arch+systemd installation guide? (Read 1827 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

Reply #15
>Or if there is already a kernel and initramfs in /boot they are going to be older versions as the kernel gets updated..

Since in your example /boot is actually the ESP partition, I'm guessing there is a way to tell GRUB to look for the kernel and initramfs in the root of the ESP partition instead of the actual /boot.
I'm sure there is but the question was
Quote
WHY SIMPLE mounting at /boot
As you point out more than simply mounting the ESP at boot would need to be done.

To me it's going to lengths to solve a problem which doesn't need to exist. And for anyone wanting several distros installed it's best to keep the kernels on the rootfs not mixed in with the ESP.
While I'm not saying it's impossible to achieve I see little benefit to mounting the ESP at /boot but plenty of disadvantages though.

I'm sure if I put my mind to it I could mount /home at /emoh but I'd expect potential breakage.
Imho /boot/efi is a good solution. /this/is/where/i/put/my/efi would be workable but a bit silly. /boot introduces unnecessary issues. And I still fail to see any benefits ?

[History] /mnt/boot: Do we need to rely on Arch+systemd installation guide?

Reply #16
I went ahead and adjusted the wiki page to suggest /boot/efi as the mountpoint. It clears the BOOT/ESP confusion and doesn't break anything for people with compliant UEFI firmware if they're going to install GRUB (or any other bootloader with drivers for Linux filesystems).
now i want to thank you folks for timely dealing with the issue and for a guidance too.
still i have a question [honestly, a too bit technical so do not bother if it`s too complicated].
'i was following Archwiki installation guide --maybe it`s systemd`s bug but here are the steps:
    FAULTY SETUP
    • [...]
    • i have booted in UEFI mode from Ventoy on USB 2.0 port [i have USB 3.0 unaccessible from BIOS]
    • [...]
    • I HAVE VERIFIED BOOTING MODE ls /sys/firmware/efi/efivars
    • [...]
    • mount --mkdir /dev/sda1 /mnt/boot
    • [...]
    • pacman -S grub efibootmgr
      grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=grub
    • [...]
    • my Arch system was bootable but overheating and crashing after seven minutes; i have checked efivars among other stuff --they were absent!!!
      USABLE SETUP
      • [...]
      • i have booted in UEFI mode from Ventoy on USB 2.0 port [i have USB 3.0 unaccessible from BIOS]
      • [...]
      • I HAVE VERIFIED BOOTING MODE ls /sys/firmware/efi/efivars
      • [...]
      • mount --mkdir /dev/sda1 /mnt/boot/efi
      • [...]
      • pacman -S grub efibootmgr
        grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
      • [...]
      • my Arch system was bootable and completely healthy [if not accounting for presence of microsystemd]; firstly i have checked efivars --they WERE LISTED!!!
      Can Anyone Explain How Could It be Possible To Drop Efivars Getting Up From A Bed?'

      [...]
      A faulty UEFI implemenation. I know computers that crash if you try to install GRUB, no matter where the ESP is mounted [...]
      thanks to Caperzotte i have rediscovered Rod Smith`s site where i have found where to go for reading more[1] here is one possible explanation given by him

      Quote
      Quick Recommendations:
      Most Linux distributions install the EFI version of GRUB 2 on EFI-based computers. When I first wrote these pages, GRUB 2 barely worked, but it's much more reliable in 2018 than in 2011 [...]
      There are problems with GRUB 2, though. Some of these problems relate to the fact that it can be difficult to control your boot mode (EFI vs. BIOS) when you install an OS, and therefore difficult to tell which version of GRUB you've installed. There are also cases where GRUB misbehaves; it may fail to launch, refuse to chainload to Windows or OS X, or do other strange things [...]
      Be aware that there are significant system-specific quirks [...]
      i don`t think it`s Grub`s failure however, and it`s even more better now than it was back in 2018, and could anyone explain me if it is responsible for efivars at all?


      HISTORY A:
      while reading Rod`s article i have found WHERE those instructions outlawing /boot/efi mount point HAD COMETH FROM:
      Quote
      Once Linux is installed, the ESP is typically mounted at /boot/efi, so these directories would be /boot/efi/EFI/ubuntu and /boot/efi/EFI/redhat, respectively, on a working Linux installation. A proposal at freedesktop.org would encourage mounting the ESP at /boot rather than at /boot/efi. This proposal has yet to be adopted by any major distribution, although Arch Linux users are fond of mounting the ESP at /boot.


      then i have found The Linux Userspace API (UAPI) Group hosting the specification; here is the path

      Rod Smith`s hints on how to fix another case of UEFI failure [registering Grub]

      Roderick Smith`s site dedicated to EFI and UEFI

      EFI Disk Structures

      This page is obsolete. Current version is at https://systemd.io/BOOT_LOADER_SPECIFICATION.TL;DR

      This content has moved to the UAPI group website

      The Boot Loader Specification

      Quote
      The $BOOT Partition Placeholder:
        In the text below, the placeholder $BOOT will be used to refer to the partition determined as follows:
      • On disks with an MBR partition table: → the boot partition, as described above
      • On disks with a GPT partition table: → the XBOOTLDR partition if it exists
      • Otherwise, on disks with a GPT partition table: → the ESP

      Quote
      Mount Points:
      It is recommended to mount $BOOT to /boot/, and the ESP to /efi/. If $BOOT and the ESP are the same, then either a bind mount or a symlink should be established making the partition available under both paths.

      (Mounting the ESP to /boot/efi/, as was traditionally done, is not recommended. Such a nested setup complicates an implementation via direct autofs mounts — as implemented by systemd for example —,[sic] as establishing the inner autofs will trigger the outer one. Mounting the two partitions via autofs is recommended because the simple VFAT file system has weak data integrity properties and should remain unmounted whenever possible.)


      p.s.: those partitions tend to get bigger year after year [300MiB (old Debian page) => 550MiB (Rod`s and Archwiki`s ones) and...]
      Quote
      Creating These Partitions:
        An installer for an operating system should use this logic when selecting or creating partitions:
        • [...]
        • Otherwise, if on GPT and an ESP is found and it is large enough (let’s say at least 1G[sic]) it should be used as $BOOT and used as primary location to place boot loader menu resources in.
      [a very useful section titled Additional Resources which i am going to follow little later]
      shean shi eth Ynnwn. Aisha

       

      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #17
      Quote
      my Arch system was bootable but overheating and crashing after seven minutes; i have checked efivars among other stuff --they were absent!!!
      Are you saying that in your first example there were no efivars at all ? Or that they were null ? Or that some were missing?
      But regardless I can't explain it off the top of my head.

      Though judging from this post and previous threads there is something wrong with your hardware.
      It seems, based on what you say, that your computer overheats and crashes at lot, and this a partly an educated guess, when under load. Personally I'd be making it my priority to sort that out and then be worrying about where the ESP is mounted  ;)

      I admit it had passed me by that freedesktop.org recommend mounting the ESP at /boot. Maybe the reason that "This proposal has yet to be adopted by any major distribution" is because it's a bad idea ? Unless at the same time the distros started storing the kernel and initramfs somewhere other than /boot?

      You link Rod's site as "Roderick Smith`s site dedicated to EFI and UEFI"
      This is not incorrect however I'd go with "Roderick Smith`s site: The home of rEFInd"

      rEFInd is far superior to grub2. The only reason to choose to use grub is if your computer is BIOS only.
      The reason most linux users use grub is because that's what the installer installs and most of them would be, with justification, scared to switch even if they knew there was a better option.

      Being diplomatic grub2 is a pile of turd. Ridiculously over complicated configuration. Shitty look, Easy to end up with just a black screen, "Grub Rescue", Now what ? Whatever happened to KISS - keep it simple stupid.

      rEFInd be like: "No config, who cares". "Found these installs, which would you like to boot?"



      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #18
      Are you saying that in your first example there were no efivars at all ? Or that they were null ? Or that some were missing?
      But regardless I can't explain it off the top of my head.
      they were TOTALLY ABSENT [empty dir] upon a check: ls /sys/firmware/efi/efivars
      [but see below]

      Though judging from this post and previous threads there is something wrong with your hardware.
      It seems, based on what you say, that your computer overheats and crashes at lot, and this a partly an educated guess, when under load. Personally I'd be making it my priority to sort that out and then be worrying about where the ESP is mounted  ;)
      no, this my machine normally does not overheat or crashes [i used her for several years --first with Windows 8, then in dual boot with UbuntuStudio, then UbuntuStudio alone, then SocialismStudio+Openbox and in last spring i have switched to Arch where this issue had arised.

      a minute ago i have found my old cheatcheet i used for Arch installation --and please folks i am nearly blind and having short-term memory loss oftenly so now i have recollected the sequence of events
      firstly installing Arch i have gotten unbootable system
      because --just look on it:

      Code: [Select]
      mount --mkdir /dev/sda1 /mnt/boot
      [...]
      grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

      i have copied that from Archwiki grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB and even if i check all the stuf for consistency and constanly monitor MY OWN activity for correctness --i had made wrong substitution because was confused by too many options in their Mount the EFI system partition
      then for all subsequent attempts [two or three] but final one i was using /boot in both commands, achieving faulty setup i have described in original post.

      and finally i have found Debian`s old article telling to use /boot/efi.



      You link Rod's site as "Roderick Smith`s site dedicated to EFI and UEFI"
      This is not incorrect however I'd go with "Roderick Smith`s site: The home of rEFInd"

      rEFInd is far superior to grub2. The only reason to choose to use grub is if your computer is BIOS only.
      The reason most linux users use grub is because that's what the installer installs and most of them would be, with justification, scared to switch even if they knew there was a better option.

      Being diplomatic grub2 is a pile of turd. Ridiculously over complicated configuration. Shitty look, Easy to end up with just a black screen, "Grub Rescue", Now what ? Whatever happened to KISS - keep it simple stupid.

      rEFInd be like: "No config, who cares". "Found these installs, which would you like to boot?"
      yes Grub may be quiet black-screenish sometimes, but ...as you have said 'that`s what the installer installs' and personally i am not ready to switch to another bootloader from an already installed system;
      and in addition, and that`s why i have preferred Grub while planning installions --it DOES support my chosen filesystem: XFS;
      among the other ones only LILO has a support for it but DOES NOT work with UEFI hardware.
      shean shi eth Ynnwn. Aisha

      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #19
      no, this my machine normally does not overheat or crashes
      My mistake. You must have been talking about another machine in this thread.
      Quote
      i have had a freezing of the system after some fifteen minutes.
      Quote
      the machine gets overheated before the system freezes
      Quote
      and i was literally exhausted after several  hours of sitting in front of constantly crashing baby
      Sounds like the other machine has cooling issues ?

      Quote
      yes Grub may be quiet black-screenish sometimes, but ...as you have said 'that`s what the installer installs' and personally i am not ready to switch to another bootloader from an already installed system;
      I wasn't so much saying you should switch as expressing my love for rEFInd and my hatred for grub2.
      Though truth told I think everybody capable should switch :)
      Because it's better ;)

      Unless.....
      Quote
      and in addition, and that`s why i have preferred Grub while planning installions --it DOES support my chosen filesystem: XFS;
      among the other ones only LILO has a support for it but DOES NOT work with UEFI hardware.

      Though I do believe it's possible to use XFS with rEFInd as well as other, dare I say, exotic filesystems. But you need to source third party drivers. It's all on Rod's site.

      It surprises me you would be adverse to switching bootloaders as you clearly enjoy tinkering. Which is a complement not criticism.

      Getting back to your efivars thing.
      My guess. Your efivars aren't setup because some part of your 'mount esp on /boot' process has resulted in some sort of issue / mismatch between kernel - initramfs - kernel modules.
      That's the only sane reason I can think of as to why it would work (have efivars) mounted anywhere else but not work when mounted on /boot.

      However I'd expect a lot more breakage than just efivars so I'm not convinced by my own theory either.

      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #20
      [...] expressing my love for rEFInd [...] I think everybody capable should switch :)
      Because it's better ;)
      [...] I do believe it's possible to use XFS with rEFInd as well as other, dare I say, exotic filesystems. But you need to source third party drivers. It's all on Rod's site.

      It surprises me you would be adverse to switching bootloaders as you clearly enjoy tinkering. Which is a complement not criticism.
      oh no i`m not reluctant --i am really interested in trying/learning software other than i already do have. that is just like i said --i need XFS[1]
      i would check Rod`s site for the stuff you mentioned.




      My mistake. You must have been talking about another machine in this thread.Sounds like the other machine has cooling issues ?
      yes it was said in that another thread;
      that laptop is Asus K50IN born in some 2010th so that is not cooling issue but TECHNOLOGY LEVEL issue.
      Pentium T4300 [Penryn-3M (45 nm)] is rated at TDP 35Wt. and the cooling system is really small and gaspy oftenly[2]
      i make hour-or-two-long audio recordings of my life performance plus a lot of editing or overdubs --XFS suits my needs the best [but i would not dare recommending XFS to anyone using an 'HDD-only' setup; it is the best performer with an SSD; for an HDD-based system ext4 outperforms XFS]
      especially if rendering stuff in Kdenlive or playing someting based on old 3D-engine like Crystal Space; for making my videos i have switched to using my newer Asus laptop [x550cc; Intel Core i3 model i3-3217U]; probably this newer machine has better designed cooling system too
      shean shi eth Ynnwn. Aisha

      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #21
      > among the other ones only LILO has a support for it but DOES NOT work with UEFI hardware.

      There's elilo, though it stopped being developed long ago.

      > It surprises me you would be adverse to switching bootloaders as you clearly enjoy tinkering. Which is a complement not criticism.

      The bootloader isn't exactly something you should be "tinkering" with unless you're doing it in some kind of virtual environment, far away from the main OS. Any mistake can lead to an unbootable system.

      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #22
      Quote
      > among the other ones only LILO has a support for it but DOES NOT work with UEFI hardware.

      There's elilo, though it stopped being developed long ago.
      mmm ...i heard about it at some point but Archwiki does not list it, probably because it`s unmaintained; so making installations i have not even recollected it does exist.


      Quote
      > It surprises me you would be adverse to switching bootloaders as you clearly enjoy tinkering. Which is a complement not criticism.
      The bootloader isn't exactly something you should be "tinkering" with unless you're doing it in some kind of virtual environment, far away from the main OS. Any mistake cal lead to an unbootable system.

      oh yes i tweaked and reinstalled oftenly so i had had in total several hours of scary grub-cmd or blinky-blinky_underscore when was making some mistakes
      shean shi eth Ynnwn. Aisha

      Re: /mnt/boot: Do we need to rely on Arch+systemd installation guide?

      Reply #23
      The bootloader isn't exactly something you should be "tinkering" with unless you're doing it in some kind of virtual environment, far away from the main OS. Any mistake cal lead to an unbootable system.
      I'm sorry i disagree. The bootloader is just another part of a computer.
      It's all there for tinkering with.