]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: add --append-fstab parameter 37238/head
authorAlberto Planas <aplanas@suse.com>
Thu, 24 Apr 2025 13:02:27 +0000 (15:02 +0200)
committerAlberto Planas <aplanas@suse.com>
Tue, 20 May 2025 08:32:14 +0000 (10:32 +0200)
commitfc0cc3065c94a1e7d532195841b9423749e7f030
tree4ce8c07198f5813dd321b3f09d89baed0d287f08
parentba2d8107e2f39bd4e9a164f5baf51d7881eded30
repart: add --append-fstab parameter

If --generate-fstab=PATH is used, there is the possibility that the
fstab file already exists, making systemd-repart fail.

This commit will add a new --append-fstab= parameter, that will read
the file and merge it with the new generated content.  Using the
comments, the command can separate the automatic-generated section from
the user-provided section, allowing for the next append the replacement
only of the automatic-generated section, keeping the user one.

Signed-off-by: Alberto Planas <aplanas@suse.com>
man/systemd-repart.xml
src/repart/repart.c