https://bugs.kde.org/show_bug.cgi?id=402154

--- Comment #21 from tagwer...@innerjoin.org ---
As a workround in openSuse, my test install had a /etc/fstab:

    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /                       btrfs 
defaults                      0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /var                    btrfs 
subvol=/@/var                 0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /usr/local              btrfs 
subvol=/@/usr/local           0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /srv                    btrfs 
subvol=/@/srv                 0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /root                   btrfs 
subvol=/@/root                0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /opt                    btrfs 
subvol=/@/opt                 0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /home                   btrfs 
subvol=/@/home                0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /boot/grub2/x86_64-efi  btrfs 
subvol=/@/boot/grub2/x86_64-efi  0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /boot/grub2/i386-pc     btrfs 
subvol=/@/boot/grub2/i386-pc  0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /.snapshots             btrfs 
subvol=/@/.snapshots          0  0
    UUID=a500b70e-4811-4db2-ab79-34e99b142b57  swap                    swap   

It seems that the BTRFS mounts are performed in parallel and there seems to be
no option to specify that specific mounts appear with fixed device numbers.

It is however possible to add "x-systemd.requires" options in the /etc/fstab
that suggest "an order" that mounts are done in - and the device numbers seem
to be allocated in the order of the mounts.

This can only be described as a hack and quite likely fragile.

If "/home" is set to depend on "/" and /.snapshots" and the other BTRFS subvols
set to depend on "/home" then mount order is better defined and the device
number allocated for /home *seems* stable.

With the "x-systemd.required"s added, my /etc/fstab looks like:

    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /                       btrfs 
defaults                      0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /var                    btrfs 
subvol=/@/var,x-systemd.requires=/home    0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /usr/local              btrfs 
subvol=/@/usr/local,x-systemd.requires=/home  0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /srv                    btrfs 
subvol=/@/srv,x-systemd.requires=/home    0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /root                   btrfs 
subvol=/@/root,x-systemd.requires=/home   0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /opt                    btrfs 
subvol=/@/opt,x-systemd.requires=/home    0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /home                   btrfs 
subvol=/@/home,x-systemd.requires=/,x-systemd.requires=/.snapshots       0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /boot/grub2/x86_64-efi  btrfs 
subvol=/@/boot/grub2/x86_64-efi,x-systemd.requires=/home  0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /boot/grub2/i386-pc     btrfs 
subvol=/@/boot/grub2/i386-pc,x-systemd.requires=/home  0  0
    UUID=19af1d21-f5c2-4518-a839-a3f2afdb199c  /.snapshots             btrfs 
subvol=/@/.snapshots          0  0
    UUID=a500b70e-4811-4db2-ab79-34e99b142b57  swap                    swap  
defaults                      0  0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to