noauto option ignored in /etc/fstab?

Tom H tomh0665 at gmail.com
Mon Dec 4 22:18:56 UTC 2017


On Mon, Dec 4, 2017 at 2:45 PM, Josef Wolf <jw at raven.inka.de> wrote:
> On Mon, Dec 04, 2017 at 01:12:07PM -0500, Tom H wrote:
>>
>> I set up a BIOS VM and "cat /run/systemd/generator/boot.mount"
>> doesn't help. I expected "noauto" not to have
>> "Before=local-fs.target" but my laptop has it too.
>
> There seems to be no "Before" stanza in my boot.mount. Should I try to
> add one?

No. I thought that it was the culprit (and I don't understand how/why
it's present on my laptop).

"/etc/init.d/grub-common" has a "case" statement with

start|restart|force-reload)
log_action_msg "Recording successful boot for GRUB"
[ -s /boot/grub/grubenv ] || rm -f /boot/grub/grubenv
mkdir -p /boot/grub
grub-editenv /boot/grub/grubenv unset recordfail
log_end_msg $?

so "/boot" is being mounted in spite of the "noauto" :(

root at jwolf:~# systemctl status boot.mount
● boot.mount - /boot
Loaded: loaded (/etc/fstab; generated; vendor preset: enabled)
Active: inactive (dead)
Where: /boot
What: /dev/disk/by-uuid/7657da8f-9398-4171-b298-5415bffbe22a
Docs: man:fstab(5)
man:systemd-fstab-generator(8)

root at jwolf:~# systemctl status grub-common.service
● grub-common.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)

root at jwolf:~# findmnt /boot

root at jwolf:~#

[You might want to add "x-systemd.auto" to the "/boot" line in
?etc/fstab". "/boot" will be automounted when it's needed.]




More information about the ubuntu-users mailing list