]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: Add --generate-fstab= and --generate-crypttab= options
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 25 Dec 2023 22:11:22 +0000 (23:11 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 10 Feb 2024 12:07:02 +0000 (13:07 +0100)
commit1a0541d44c78ced78a566051ec8f63417370aeaa
treeb1f9a938c81140553e58f29d73c6a598eee29d40
parent1a383a881b4dd947e2015dd405dc4c4a1298262f
repart: Add --generate-fstab= and --generate-crypttab= options

These can be used along with two new settings MountPoint= and
EncryptedVolume= to write fstab and crypttab entries to the given
paths respectively in the root directory that repart is operating on.

This is useful to cover scenarios that aren't covered by the
Discoverable Partitions Spec. For example when one wants to mount
/home as a separate btrfs subvolume. Because multiple btrfs subvolumes
can be mounted from the same partition, we allow specifying MountPoint=
multiple times to add multiple entries for the same partition.
man/repart.d.xml
man/systemd-repart.xml
src/partition/repart.c