]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: add --append-fstab parameter (#37238)
authorLuca Boccassi <bluca@debian.org>
Tue, 20 May 2025 13:49:43 +0000 (14:49 +0100)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 13:49:43 +0000 (14:49 +0100)
commit82d3551fbf52ebdb7dd4cffb5ce18829002914c4
tree47082b8a933078964d614bf340d3df7248cba66b
parent6479204e567cd55e1bfc5894131fba80ea68a780
parentfc0cc3065c94a1e7d532195841b9423749e7f030
repart: add --append-fstab parameter (#37238)

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.