You are not logged in.
I just completed an encrypted system using a remote LUKS header install (https://wiki.archlinux.org/index.php/Dm … UKS_header)
/boot is contained on a usb partition. I added noauto to the fstab options, but /boot still automounts on startup anyways.
Furthermore, if I try to unmount /boot manually, it says it has unmounted properly, but yet stays mounted. I have to run umount -f /boot to get it to actually unmount.
Here is the relevant line from fstab:
/dev/sdb1 /boot vfat rw,noauto,realtime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2Thanks for any help.
Last edited by agent509 (2014-11-05 05:19:30)
Offline
What happens if you actually stop the boot.mount systemd unit?
Offline
nothing changes. I still cannot unmount /boot without umount --force
Offline
Update: playing around with systemctl, I think I may have discovered something. Upon logging in after bootup, boot.mount is inactive. After cd'ing into /boot, it becomes active. I'm still really new to this, but it seems to me that maybe for some reason the system automatically attempts to mount the usb at /boot whenever I try to cd to it. I also found that if I attempted to cd to /boot after removing the usb, that the system became hung until I plugged the usb back in.
thoughts?
Offline
Are you using UEFI and gummiboot? I think if you use that combination and mount the ESP at /boot it will create an automount unit for that. When this happens, if you unmount, it will remount upon next access to that directory. Is there a boot.automount unit that is running?
Offline
Yes I am, and yes that seems to be what's happening. Why does that combination result in an automount unit for /boot and how can I stop it from creating one?
Offline
You could just mask the unit I guess. I don't really know, as I have never actually tried to disable this. I think it is quite handy actually... though my ESP is not removable. Try...
systemctl mask boot.automount Edit: Honestly, I was under the impression that having an entry in /etc/fstab for /boot would actually override these automagic settings. So I am not entirely sure if what you are seeing is what is supposed to happen.
Last edited by WonderWoofy (2014-11-05 05:13:36)
Offline
it does seem that it could be quite useful... I just wish there were a way to keep it from hanging up the system if I accidentally try to access /boot when the drive isn't plugged in. Do you know if there is a way to do that? If not, I suppose I'll just leave it as is, as it's not too much of a pain. Thanks for your help!
Offline
Masking the unit will make a symlink from /etc/systemd/system/boot.automount to /dev/null. Since the unit files in /etc/ take ultimate priority, even if the generator makes the automount file, it will be in /run/systemd and will thus be overridden. This should stop it.
Offline
Alright, thanks again for the help!
Offline
No problem.
Offline