mirror of
https://github.com/ublue-os/packages.git
synced 2026-11-03 21:49:48 -09:00
fix: ensure libvirt group and libvirtdbus user/group are created (#619)
This commit is contained in:
parent
d065ce7374
commit
372c47af25
5 changed files with 18 additions and 10 deletions
|
|
@ -1 +1 @@
|
|||
enable libvirt-workaround.service
|
||||
enable ublue-os-libvirt-workarounds.service
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
g libvirt - -
|
||||
u libvirtdbus - 'Libvirt D-Bus bridge' - -
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
Name: ublue-os-libvirt-workarounds
|
||||
Vendor: ublue-os
|
||||
Version: 1.0
|
||||
Version: 1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Services to workaround issues in -dx images
|
||||
Summary: Services to workaround libvirt issues
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/ublue-os/packages
|
||||
VCS: {{{ git_dir_vcs }}}
|
||||
|
|
@ -15,7 +15,7 @@ Supplements: libvirt
|
|||
%global sub_name %{lua:t=string.gsub(rpm.expand("%{NAME}"), "^ublue%-os%-", ""); print(t)}
|
||||
|
||||
%description
|
||||
Adds systemd units and configuration files for workarounds with -dx images
|
||||
Adds systemd service and configuration for workarounds with libvirt on images
|
||||
|
||||
%prep
|
||||
{{{ git_dir_setup_macro }}}
|
||||
|
|
@ -24,22 +24,28 @@ Adds systemd units and configuration files for workarounds with -dx images
|
|||
|
||||
%install
|
||||
install -Dm0644 -t %{buildroot}%{_presetdir}/ src/%{_presetdir}/54-ublue-os-libvirt-workarounds.preset
|
||||
install -Dm0644 -t %{buildroot}%{_unitdir}/ src/%{_unitdir}/libvirt-workaround.service
|
||||
install -Dm0644 -t %{buildroot}%{_prefix}/lib/tmpfiles.d src/%{_prefix}/lib/tmpfiles.d/libvirt-workaround.conf
|
||||
install -Dm0644 -t %{buildroot}%{_unitdir}/ src/%{_unitdir}/ublue-os-libvirt-workarounds.service
|
||||
install -Dm0644 -t %{buildroot}%{_prefix}/lib/sysusers.d src/%{_prefix}/lib/sysusers.d/ublue-os-libvirt-workarounds.conf
|
||||
install -Dm0644 -t %{buildroot}%{_prefix}/lib/tmpfiles.d src/%{_prefix}/lib/tmpfiles.d/ublue-os-libvirt-workarounds.conf
|
||||
|
||||
%check
|
||||
|
||||
%post
|
||||
%systemd_post libvirt-workaround.service
|
||||
%systemd_post ublue-os-libvirt-workarounds.service
|
||||
|
||||
%preun
|
||||
%systemd_preun libvirt-workaround.service
|
||||
%systemd_preun ublue-os-libvirt-workarounds.service
|
||||
|
||||
%files
|
||||
%{_presetdir}/54-ublue-os-libvirt-workarounds.preset
|
||||
%{_unitdir}/libvirt-workaround.service
|
||||
%{_prefix}/lib/tmpfiles.d/libvirt-workaround.conf
|
||||
%{_unitdir}/ublue-os-libvirt-workarounds.service
|
||||
%{_prefix}/lib/sysusers.d/ublue-os-libvirt-workarounds.conf
|
||||
%{_prefix}/lib/tmpfiles.d/ublue-os-libvirt-workarounds.conf
|
||||
|
||||
%changelog
|
||||
* Fri Jun 20 2025 Benjamin Sherman <benjamin@holyarmy.org> - 1.1
|
||||
- Add sysusers config for libvirt and libvirtdbus
|
||||
- Rename all files for consistency
|
||||
|
||||
* Thu Apr 17 2025 Adam Fidel <adam@fidel.cloud> - 1.0
|
||||
- Port from ublue-os/aurora
|
||||
|
|
|
|||
Loading…
Reference in a new issue