You are not logged in.

#1 2014-09-11 21:36:53

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

[Solved] systemd creates autofs after unmounting /boot

After logging in, i unmount /boot, so that i can unplug the usb drive where it resides, then systemd creates this mount:

# mount | grep /boot
systemd-1 on /boot type autofs (rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)

Typing this hangs forever:

ls /boot

/etc/fstab

UUID=2D75-67FC      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,nodev,nosuid,noexec	0 2

I don't really know what to make of this. Seems like a bug, given that ls hangs forever instead of showing nothing.

Last edited by teateawhy (2014-09-12 10:48:38)

Offline

#2 2014-09-11 21:48:10

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,486
Website

Re: [Solved] systemd creates autofs after unmounting /boot

Possibly related to http://www.freedesktop.org/software/sys … rator.html ?

Does

systemctl status boot.automount 

return anything useful?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-09-11 22:02:38

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] systemd creates autofs after unmounting /boot

# systemctl status boot.automount
● boot.automount - EFI System Partition Automount
   Loaded: loaded (/run/systemd/generator.late/boot.automount)
   Active: active (running) since Do 2014-09-11 22:54:12 CEST; 1h 4min ago
    Where: /boot

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Offline

#4 2014-09-11 22:22:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,486
Website

Re: [Solved] systemd creates autofs after unmounting /boot

Looks like I was right.

Try masking boot.automount


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-09-11 22:40:00

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] systemd creates autofs after unmounting /boot

Did this:

systemctl mask boot.mount

Now the filesystem is not mounted at all, which is not desireable either.

Offline

#6 2014-09-11 22:59:56

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,486
Website

Re: [Solved] systemd creates autofs after unmounting /boot

Was that a typo, or did you really mask the mount unit rather than the automount unit?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2014-09-11 23:05:49

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] systemd creates autofs after unmounting /boot

My bad, i really masked the mount unit. Will try again tomorrow.
EDIT:
After masking the automount unit, it looks like this:
* /boot is mounted correctly at startup
* after unmounting /boot manually, no autofs mount shows up anymore
* ls does not hang and immediatly shows nothing, as expected

# systemctl status boot.automount 
● boot.automount
   Loaded: masked (/dev/null)
   Active: inactive (dead)
# mount | grep /boot

(No output)

Last edited by teateawhy (2014-09-12 10:16:50)

Offline

#8 2014-09-12 10:26:32

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,486
Website

Re: [Solved] systemd creates autofs after unmounting /boot

So [solved]?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2014-09-12 10:48:19

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] systemd creates autofs after unmounting /boot

Yes. Should i make a bug report about this, too?

Offline

#10 2014-09-12 11:24:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,486
Website

Re: [Solved] systemd creates autofs after unmounting /boot

Upstream, perhaps. It's (somewhat) intended behaviour, but ls hanging does sound like it may be an unexpected side-effect caused by the automount unit not timing out.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB