]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/fs-util.h
bootctl: create loader.conf only if it doesn't exist yet
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Feb 2017 16:44:35 +0000 (17:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Feb 2017 20:55:43 +0000 (21:55 +0100)
commitf5b84de2abbb48b33c710ec76c8b2f59e90386ae
tree640caf9b4c7997d24f5b24bf1c34ea9012d7f35e
parent175d308cad2075658b925e5abdbdfe7fa5fda466
bootctl: create loader.conf only if it doesn't exist yet

If the snippet aleady exists, don't do anything, as the file was already
installed then.

(This also reworks the code to create the file atomically)

Fixes: #5396
src/basic/fs-util.h
src/boot/bootctl.c