<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 4, 2015 at 1:44 PM, Andrei Borzenkov <span dir="ltr"><<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">В Sat, 4 Apr 2015 12:55:34 +0300<br>
<div><div class="h5">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>> пишет:<br>
<br>
> On Sat, Apr 4, 2015 at 7:37 AM, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>><br>
> wrote:<br>
><br>
> > В Fri, 3 Apr 2015 21:19:24 +0300<br>
> > Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>> пишет:<br>
> ><br>
> > > Previously udev used to undo mounts when a device *disappeared;* when<br>
> > > systemd took over the task, it started unmounting things as soon as it<br>
> > > noticed that the device *doesn't exist right now.* While similar, the new<br>
> > > behavior can be annoying, since it also triggers if the device never<br>
> > > existed in the first place. For example:<br>
> > ><br>
> > > ~ My fstab has "/dev/mapper/luks-backups → /mnt/backup". I want to mount<br>
> > > another disk there (which has a different label), but even though `mount<br>
> > > /dev/sdb1 /mnt/backup` succeeds, the directory remains empty and won't<br>
> > show<br>
> > > up in `findmnt`.<br>
> > ><br>
> > > After a few retries I check dmesg and notice systemd saying that<br>
> > > "mnt-backup.mount is bound to an inactive device; stopping". Which means,<br>
> > > if my fstab says disk X is mounted there, systemd won't let me mount<br>
> > > anything else but disk X at that location.<br>
> > ><br>
> > > ~ I had to boot to emergency mode due to reasons, and attempted to mount<br>
> > > /boot & /boot/efi in order to fix something. Since my fstab had<br>
> > > "/dev/disk/by-partlabel/boot → /boot", any attempts to mount anything at<br>
> > > /boot get immediately undone – emergency mode has no udev, so I get<br>
> > > "boot.mount is bound to an inactive device; stopping" all over again.<br>
> > ><br>
> ><br>
> > Do these commits help?<br>
> ><br>
> > commit 628c89cc68ab96fce2de7ebba5933725d147aecc<br>
> > Author: Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>><br>
> > Date:   Fri Feb 27 21:55:08 2015 +0100<br>
> ><br>
> >     core: rework device state logic<br>
> ><br>
> > commit 496068a8288084ab3ecf8b179a8403ecff1a6be8<br>
> > Author: Martin Pitt <<a href="mailto:martin.pitt@ubuntu.com">martin.pitt@ubuntu.com</a>><br>
> > Date:   Fri Mar 13 08:35:59 2015 +0100<br>
> ><br>
> >     core: don't change removed devices to state "tentative"<br>
> ><br>
><br>
> Nope, this is already on 093c2cfe3b1.<br>
><br>
><br>
<br>
</div></div>I cannot reproduce it. Could you give more details (/etc/fstab line,<br>
systemctl status and systemctl show mnt-backup.mount before and after<br>
manual mount)?<br>
</blockquote></div><br>Hmm, you're right, I cannot reproduce the /mnt/backup case either. Weird. (I mostly remember it from 2 weeks ago.)</div><div class="gmail_extra"><br></div><div class="gmail_extra">The /boot one though happened just yesterday:<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>