system-config: add systemd-preset configuration

Fixes QubesOS/qubes-issues#2049
This commit is contained in:
Marek Marczykowski-Górecki 2016-06-06 02:22:58 +02:00
parent 4d4e7cc5e9
commit 60488d4439
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
3 changed files with 55 additions and 0 deletions

View File

@ -155,6 +155,10 @@ install -m 644 -D system-config/disable-lesspipe $RPM_BUILD_ROOT/etc/profile.d/z
install -m 755 -D system-config/kernel-grub2.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/90-grub2.install
install -m 755 -D system-config/kernel-xen-efi.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/90-xen-efi.install
install -m 755 -D system-config/kernel-remove-bls.install $RPM_BUILD_ROOT/usr/lib/kernel/install.d/99-remove-bls.install
install -m 644 -D system-config/75-qubes-dom0.preset \
$RPM_BUILD_ROOT/usr/lib/systemd/system-preset/75-qubes-dom0.preset
install -m 644 -D system-config/99-qubes-default-disable.preset \
$RPM_BUILD_ROOT/usr/lib/systemd/system-preset/99-qubes-default-disable.preset
# file copy to VM
install -m 755 file-copy-vm/qfile-dom0-agent $RPM_BUILD_ROOT/usr/lib/qubes/
@ -276,6 +280,8 @@ chmod -x /etc/grub.d/10_linux
%config(noreplace) /etc/udev/rules.d/60-persistent-storage.rules
%attr(0644,root,root) /etc/cron.d/qubes-sync-clock.cron
%config(noreplace) /etc/profile.d/zz-disable-lesspipe
/usr/lib/systemd/system-preset/75-qubes-dom0.preset
/usr/lib/systemd/system-preset/99-qubes-default-disable.preset
# Man
%{_mandir}/man1/qvm-*.1*
%{_mandir}/man1/qubes-*.1*

View File

@ -0,0 +1,48 @@
enable gdm.service
enable lightdm.service
enable slim.service
enable lxdm.service
enable sddm.service
enable kdm.service
enable xdm.service
disable systemd-timesyncd.service
disable systemd-networkd.service
disable systemd-resolved.service
# Locally-running services
enable lvm2-monitor.*
enable lvm2-lvmetad.*
enable dm-event.*
enable dmraid-activation.service
enable abrtd.service
enable abrt-ccpp.service
enable abrt-oops.service
enable abrt-xorg.service
enable abrt-vmcore.service
enable xenstored.service
enable xenstored.socket
enable xenstored_ro.socket
enable xenconsoled.service
enable libvirtd.service
enable virlockd.socket
enable upower.service
enable crond.service
# Qubes services
enable qubes-core.service
enable qubes-netvm.service
enable qubes-meminfo-writer-dom0.service
enable qubes-db-dom0.service
enable qubes-qmemman.service
enable qubes-suspend.service
enable qubes-setupdvm.service
enable qubes-block-cleaner.service

View File

@ -0,0 +1 @@
disable *