trivial: Fix $fwupdmgr modify-remote lvfs-testing Enabled true

Failed to create file “/etc/fwupd/remotes.d/lvfs-testing.conf.Q7K76Y”: Read-only file system
This commit is contained in:
Richard Hughes 2017-09-29 11:34:08 +01:00
parent 26767845f1
commit ba0ec85a44
2 changed files with 3 additions and 2 deletions

View File

@ -16,5 +16,5 @@ ProtectKernelModules=yes
ProtectSystem=full
RestrictAddressFamilies=AF_NETLINK AF_UNIX
RestrictRealtime=yes
ReadWritePaths=@localstatedir@/lib/fwupd -@bootdir@
ReadWritePaths=@localstatedir@/lib/fwupd @sysconfdir@/fwupd/remotes.d -@bootdir@
SystemCallFilter=~@mount

View File

@ -37,6 +37,7 @@ con2.set('bindir',
con2.set('localstatedir', join_paths(get_option('localstatedir')))
con2.set('datadir', join_paths(get_option('datadir')))
con2.set('bootdir', get_option('with-bootdir'))
con2.set('sysconfdir', default_sysconfdir)
# replace @libexecdir@
configure_file(
@ -61,7 +62,7 @@ if get_option('enable-systemd')
endif
if get_option('enable-systemd')
# replace @localstatedir@ and @bootdir@
# replace @localstatedir@, @sysconfdir@ and @bootdir@
configure_file(
input : 'fwupd.service.in',
output : 'fwupd.service',