Bug#762395: systemd is not abel to boot systems with btrfs and without initramfs

M G Berberich berberic at fmi.uni-passau.de
Mon Sep 22 13:31:18 BST 2014


Hello,

Am Montag, den 22. September schrieb Dimitri John Ledkov:
> On 22 September 2014 12:57, Michael Biebl <biebl at debian.org> wrote:
> > Am 22.09.2014 um 13:27 schrieb M G Berberich:
> >> Hello,
> >>
> >> Am Montag, den 22. September schrieb Michael Biebl:
> >>> Am 21.09.2014 um 22:04 schrieb M G Berberich:
> >>>> Package: systemd
> >>>> Version: 208-8
> >>>> Severity: normal
> >>>>
> >>>> Dear Maintainer,
> >>>>
> >>>> systemd is not able to boot a system that has btrfs-volumes in
> >>>> /etc/fstab and does not use a initramfs. That is because ‘btrfs device
> >>>> scan’ has to be executed bevor mounting btrfs-volumes and systemd does
> >>>> not do this.
> >>>>
> >>>
> >>> I see
> >>>
> >>> btrfs-tools: /lib/udev/rules.d/70-btrfs.rules
> >>> btrfs-tools: /lib/udev/rules.d/80-btrfs-lvm.rules
> >>>
> >>> 70-btrfs.rules:RUN+="/sbin/btrfs device scan $env{DEVNAME}"
> >>> 80-btrfs-lvm.rules:RUN+="/sbin/btrfs device scan $env{DEVNAME}"
> >>>
> >>> Can you investigate why that is not sufficient.
> >>
> >> A first guess: local filesystems are mounted bevor udev is working.
> >
> > Well, no. udev is started well before the file systems are mounted.
> > Actually, udev is responsible for local file systems to be mounted since
> > the mounting is event based and systemd relies on udev to trigger those
> > events.
> >
> > I'm bringing Dimitri into the loop here, as this sounds like a bug in
> > btrfs-tools to me.
> >
> 
> It is my understanding that udev rules should be sufficient.
> Could you please provide your /etc/fstab to reproduce this failure to boot?

not at the moment, but it must something like

/dev/sdb       /home          btrfs   subvol=home    0       2
/dev/sdb       /data          btrfs   subvol=data    0       2

> Are you attempting to do initramfs-less boot with rootfs on btrfs?

No, as far as I remember both boot and root are ext4 on
/dev/sda. /dev/sdb and dev/sdc are a btrfs-raid1 volume.

	MfG
	bmg

-- 
„Des is völlig wurscht, was heut beschlos- | M G Berberich
 sen wird: I bin sowieso dagegn!“          | berberic at fmi.uni-passau.de
(SPD-Stadtrat Kurt Schindler; Regensburg)  | www.fmi.uni-passau.de/~berberic




More information about the Pkg-systemd-maintainers mailing list