chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commit1fb53ab1ff945fd78916943a46437dd21f02caf0
tree388870d7188fc81aa7b736daec5e7af1a7159254
parent24559fa35120aa9748cfac4c738b4dbabb122e15
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