Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577000 - sys-apps/systemd-229 - after upgrade, systemd-remount-fs.service isn't started
Summary: sys-apps/systemd-229 - after upgrade, systemd-remount-fs.service isn't started
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 21:45 UTC by Florent Peterschmitt
Modified: 2018-02-26 22:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florent Peterschmitt 2016-03-10 21:45:13 UTC
Hi,

For some reason, I had to do

ln -s /usr/lib/systemd/system/systemd-remount-fs.service /etc/systemd/system/multi-user.target.wants/

to get / remounted r/w after the upgrade to systemd-229. This wasn't required before.

On another installation, older than the one I got the problem, it is setup correctly just with /usr/lib/systemd/system/local-fs.target.wants/systemd-remount-fs.service, which I also have on the current bogus system.

Anyone got the same problem?

Here is my fstab:

/dev/mapper/root / btrfs noatime,subvol=gentoo 0 0
/dev/mapper/root /lib/modules btrfs   noatime,subvol=lib.modules 0   0
/dev/mapper/root /usr/src    btrfs   noatime,subvol=usr.src 0   0
/dev/mapper/root /home/florent/SteamLibrary btrfs   noatime,subvol=SteamLibrary 0   0
UUID=9d1ae5d6-9fe0-49ae-b532-c3697ff07155		/boot		btrfs		noatime,nodev	0 0
/dev/cdrom		/mnt/cdrom	auto		noauto,ro	0 0
/dev/fd0		/mnt/floppy	auto		noauto		0 0
Comment 1 Pacho Ramos gentoo-dev 2016-03-14 15:24:49 UTC
Does running "status" over the failed .service give any hint about why it failed to start? Or isn't its starting even tried?
Comment 2 Florent Peterschmitt 2016-03-14 17:50:22 UTC
In fact, it seems that systemd doesn't support mounting multiple times the same device. That's for the multiple mounts.

I went on #systemd to investigate on this but it seems like a limitation from systemd.

The output from mounting units says it clearly, in fact.


For the remount-fs unit, it is related to that problem: systemd see /dev/mapper/root as busy and doesn't do anything for it… strange.
Comment 3 Mike Gilbert gentoo-dev 2016-03-14 18:22:15 UTC
I have a btrfs subvolume setup similar to yours, but without the lvm. It seems to work fine with systemd-229.

I suspect that my root filesystem is mounted read/write in the initramfs (dracut).
Comment 4 Mike Gilbert gentoo-dev 2016-03-14 18:25:08 UTC
My fstab, for reference.

> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /boot   btrfs   subvol=boot,autodefrag  0 0
> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /       btrfs   subvol=rootfs,autodefrag        0 1
> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /mnt/data1      btrfs   subvol=,autodefrag      0 0
> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /home           btrfs   subvol=home,autodefrag  0 0
> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /var/portage/distfiles  btrfs   subvol=distfiles,autodefrag     0 0
> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /var/portage/packages   btrfs   subvol=packages,autodefrag              0 0
> UUID=508868e4-54c6-4e6b-84b0-b3b28b1656b6       /chroots        btrfs   subvol=chroots,autodefrag               0 0
Comment 5 Florent Peterschmitt 2016-03-14 19:08:32 UTC
This is really irritating.

I setup an fstab with UUID (blkid /dev/mapper/root, took UUID="bla"), and now I have a job timeout on dev-disk\x2dby\x2duuid-blablabla

I'll setup a virtual machine to test that.


Oh and, I should have noticed that I use RAID1 & LUKS.

/dev/md2 is a RAID1 of /dev/sda3 and /dev/sdc3, where the LUKS volume resides.

When opened, it gives /dev/mapper/root.


For now I'll just mask all devices, disable automounting and setup a unit to do a "mount -a".

I think this isn't related to Gentoo, and I'll go on #systemd to take care of that shit.
Comment 6 Mike Gilbert gentoo-dev 2016-03-14 19:16:05 UTC
(In reply to Florent Peterschmitt from comment #5)
> I think this isn't related to Gentoo, and I'll go on #systemd to take care
> of that shit.

Sounds good. Please report back, either way.
Comment 7 Pacho Ramos gentoo-dev 2017-04-20 12:37:01 UTC
any news on this? Maybe upgrading to 233 could help too... :/
Comment 8 Florent Peterschmitt 2017-06-05 09:24:01 UTC
Hello,

Sorry i forgot to update this issue -_-

Well, i asked on the systemd mailing list and it is related to systemd and a udev variable called SYSTEMD_READY that must be set to 1 for a device to be usable.

I guess the Gentoo tools should take this in account for there scripts.

Here is the link to the ML archives:

https://lists.freedesktop.org/archives/systemd-devel/2016-June/036896.html

I think i resolved the issue by adding a custom script to the initrd image. Can't remember since i don't use Gentoo row…