[systemd-devel] User configs, BTRFS subvolume for /home and automatic service start during boot?

Lennart Poettering lennart at poettering.net
Fri May 4 17:03:59 UTC 2018


On Fr, 04.05.18 18:59, Thorsten Schöning (tschoening at am-soft.de) wrote:

> Guten Tag Lennart Poettering,
> am Freitag, 4. Mai 2018 um 18:07 schrieben Sie:
> 
> > Hmm, you said /home was a subvolume? That suggests they are on the
> > same fs? Not following here?
> 
> I guess "/etc/fstab" is clearer than my explanation:
> 
> > # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> > # / was on /dev/sda1 during installation
> > UUID=0841ef72-e9d4-45ca-af22-a403783859c6 /               btrfs   noatime,nodiratime,subvol=@ 0       1
> >
> > # /home was on /dev/sda1 during installation
> > UUID=0841ef72-e9d4-45ca-af22-a403783859c6 /home           btrfs   noatime,nodiratime,subvol=@home 0       2
> 
> So the same BTRFS file system containing two sub volumes. That seems
> to work for user configs, my problem was a wrong "WantedBy".

Note that btrfs subvolumes are just special directories, hence you can
also do without an explicit entry for the home subvol, and simply
create it below the root subvol.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list