TARGET SOURCE FSTYPE OPTIONS
/boot systemd-1 autofs rw,relatime,fd=36,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
/boot /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,discard
I don't care if updatedb skips /boot, but I do dislike having two entries for /boot in my mtab.
I don't think I need systemd to automount my /boot, with unoptimized mount options (or is there a way to specify them in the unit file?).
This undocumented auto-automount behavior is bad-bad on systemd's part
The "proper" way of handling this, IMO, would be to have it off by default.
Oh, I don't disagree with you here. But, I just meant "proper" in the current situation of having the decision made for you. It would be nice if you could at least put something in loader.conf that would disable this.
Thanks for the help with this though, it is much appreciated.
No problem.
]]>Thanks for the help with this though, it is much appreciated.
]]># systemctl mask boot.automount
ln -s '/dev/null' '/etc/systemd/system/boot.automount'
If you choose to boot with something else, and this unit is not generated, it will not do anything anyway. So although it doesn't seem pretty, I would imagine this would be the "proper" way of handling this. Unless of course there is some other way to optionally turn this functionality off from gummiboot or systemd that I am unaware of.
]]>I would imagine that if you create a symlink for /etc/systemd/system/boot.automount to /dev/null, it would effectively mask the autogenerated unit in /run/systemd/generators.late.
Thanks WW: this works. It does seem like a fugly hack, though...
]]>You could make a boot.mount unit that would override what is created in /run/systemd/generators. But the problem is that it is not the boot.mount that you want to override, it is the boot.automount. So I think that if you create the mask in /etc, it *should* render the automount unit in /run disabled.
]]>If a mount point is configured in both /etc/fstab and a unit file that is stored below /usr the former will take precedence. If the unit file is stored below /etc it will take precedence. This means: native unit files take precedence over traditional configuration files, but this is superseded by the rule that configuration in /etc will always take precedence over configuration in /usr.
I'm not sure if there is an error in this but the third sentence seems to contradict the first - fstab is a traditional config file so a unit file of any kind should take precedence? Of course, it is not clear how this applies to generators - do those work in the same way precedence-wise as units?
But I wonder if you could create a systemd unit under /etc if WonderWoofy's suggestion doesn't work.
]]>There is a mechanism in systemd (or maybe gummiboot) that mounts the ESP on /boot as a systemd autostart unit. So it shows up as autofs, which mlocate does not venture into.
Bingo!
┌─[Shiv ~ ]
└─╼ mount | grep boot
systemd-1 on /boot type autofs (rw,relatime,fd=36,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,discard)
If there's one thing I've learned about remote debugging over the years, it's to not trust people.
Especially Antipodeans
I Googled for this and found this relevant talk in our (duh) wiki
I spent some time yesterday searching, but missed this--to my shame
* this feature isn't even documented in systemd yet
Great. Any way to suppress this?
]]>$ grep boot /etc/fstab
/dev/disk/by-label/EFI_System /boot vfat noatime,nodev,nosuid,noexec 0 2
If /etc/updatedb.conf hasn't been modified, there's no point in posting it.
If there's one thing I've learned about remote debugging over the years, it's to not trust people.
]]>$ mount | grep boot
systemd-1 on /boot type autofs (rw,relatime,fd=37,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
/dev/sda1 on /boot type vfat (rw,nosuid,nodev,noexec,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)