]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
openrc: Make init scripts executable on install
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Feb 2022 16:22:15 +0000 (17:22 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Feb 2022 09:09:39 +0000 (10:09 +0100)
When installing openrc init scripts, we take whatever mode the
generated files are in an copy them under /etc/init.d/. This is
not ideal, because those files are not executable and they should
be.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/250
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/meson.build

index 3890df7124f3aae487753b0dd299b36c80ac83e0..b2d951d36c453b7d2c20c62557702eddfd3bcbc8 100644 (file)
@@ -848,6 +848,7 @@ if conf.has('WITH_LIBVIRTD')
       install_data(
         init_file,
         install_dir: sysconfdir / 'init.d',
+        install_mode: 'rwxr-xr-x',
         rename: [ init['name'] ],
       )