Im running Debian 8 (jessie/testing) amd64 with systemd.
On my system partition containing a btrfs filesystem, I do have the following layout:
/dev/sda1 |-root |-root_snapshots/ |-snapshot#1 |-snapshot#2
In order to fully boot from a snapshot, I currenty have to change the subvolume:
- in /etc/fstab
- in the grub console (edit mode)
The change to '/etc/fstab' requires a running system - i.e. from a flashdrive - what I want to avoid
Assume something is really broken, and I had to boot from a snapshot#1:
I'd rather only change the subvolume in the grub console, and have the rootfs mounted on the correct subvolume (here: snapshot#1).
Without a change in /etc/fstab, systemd would still mount the rootfs from the entry specified in /etc/fstab -> yielding the wrong rootfs to be mounted
- Can systemd be told to mount the rootfs from the 'rootflags=subvol=' parameter of '/proc/cmdline'
- Or is there another solution to circumvent this problem