From c3ccea83c9fe55fd9458c4744d6665131e960644 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Aug 02 2018 14:02:29 +0000 Subject: add presets for centos atomic host 7.5.1804 --- diff --git a/SOURCES/90-default.preset b/SOURCES/90-default.preset new file mode 100644 index 0000000..f8ab6f2 --- /dev/null +++ b/SOURCES/90-default.preset @@ -0,0 +1,136 @@ +# Also see: +# https://fedoraproject.org/wiki/Starting_services_by_default + +# systemd +enable remote-fs.target +enable getty@tty1.service +enable systemd-readahead-replay.service +enable systemd-readahead-collect.service + +# System stuff +enable sshd.service +enable atd.* +enable crond.* +enable chronyd.service +enable rpcbind.* +enable NetworkManager.service +enable NetworkManager-dispatcher.service +enable ModemManager.service +enable auditd.service +enable restorecond.service +enable bluetooth.* +enable avahi-daemon.* +enable cups.* + +# The various syslog implementations +enable rsyslog.* +enable syslog-ng.* +enable sysklogd.* + +# Network facing +enable firewalld.service +enable libvirtd.service +enable xinetd.service +enable ladvd.service + +# Storage +enable multipathd.service +enable libstoragemgmt.service +enable lvm2-lvmpolld.socket +enable lvm2-monitor.* +enable lvm2-lvmetad.* +enable dm-event.* +enable dmraid-activation.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=855372 +enable mdmonitor.service +enable mdmonitor-takeover.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=876237 +enable spice-vdagentd.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=885406 +enable qemu-guest-agent.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=928726 +enable dnf-makecache.timer + +# https://bugzilla.redhat.com/show_bug.cgi?id=929403 +enable initial-setup-graphical.service +enable initial-setup-text.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=957135 +enable vmtoolsd.service + +#https://bugzilla.redhat.com/show_bug.cgi?id=995987 +enable kdump.service + +#https://bugzilla.redhat.com/show_bug.cgi?id=1009970 +enable tuned.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=1215645 +enable unbound-anchor.timer + +# Hardware +enable gpm.* +enable gpsd.* +enable irqbalance.service +enable lm_sensors.service +enable mcelog.* +enable microcode.service +enable acpid.* +enable smartd.service +enable pcscd.socket +enable rngd.service + +# Other stuff +enable abrtd.service +enable abrt-ccpp.service +enable abrt-oops.service +enable abrt-xorg.service +enable abrt-vmcore.service +enable lttng-sessiond.service +enable ksm.service +enable ksmtuned.service +enable rootfs-resize.service +enable sysstat.service +enable uuidd.service +enable xendomains.service +enable xenstored.service +enable xenconsoled.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=1193616 +enable hypervfcopyd.service +enable hypervkvpd.service +enable hypervvssd.service + +# Desktop stuff +enable accounts-daemon.service +enable rtkit-daemon.service +enable upower.service +enable udisks2.service +enable polkit.service +enable packagekit-offline-update.service +enable PackageKit.service + +# Initial Setup reconfiguration service +enable initial-setup-reconfiguration.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=1312446 +enable opal-prd.service + +# virtlog.service is sometimes used by VMs started by libvirt.service +# Enable virtlog.socket to have it socket activated +# https://bugzilla.redhat.com/show_bug.cgi?id=1325503 +enable virtlogd.socket + + +# https://bugzilla.redhat.com/show_bug.cgi?id=1271839 +enable rhsmcertd.service + +# https://bugzilla.redhat.com/show_bug.cgi?id=1359645 +enable brandbot.* + +# Enable ostree-remount on ostree-based systems +# https://src.fedoraproject.org/rpms/ostree/pull-request/7 +enable ostree-remount.service diff --git a/SPECS/centos-release-atomic.spec b/SPECS/centos-release-atomic.spec index c3de0fe..ea814fe 100644 --- a/SPECS/centos-release-atomic.spec +++ b/SPECS/centos-release-atomic.spec @@ -2,11 +2,12 @@ Summary: CentOS Atomic Host metadata and configs Name: centos-release-atomic Epoch: 0 Version: 7 -Release: 1.2%{?dist}.1 +Release: 5%{?dist} License: GPL Group: System Environment/Base Source0: centos-atomic-host.conf Source1: RPM-GPG-KEY-CentOS-SIG-Atomic +Source2: 90-default.preset URL: http://wiki.centos.org/SpecialInterestGroup/Atomic BuildArch: noarch @@ -32,6 +33,10 @@ install -m 644 %SOURCE0 $RPM_BUILD_ROOT/etc/ostree/remotes.d mkdir -p -m 755 $RPM_BUILD_ROOT/usr/share/ostree/trusted.gpg.d %{__gpg} --homedir $RPM_BUILD_ROOT/usr/share/ostree/trusted.gpg.d --import %SOURCE1 +# copy systemd presets +mkdir -p %{buildroot}/%{_prefix}/lib/systemd/system-preset/ +install -m 0644 %{SOURCE2} %{buildroot}/%{_prefix}/lib/systemd/system-preset/ + %clean rm -rf $RPM_BUILD_ROOT @@ -39,8 +44,12 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %config(noreplace) /etc/ostree/remotes.d/* %config(noreplace) /usr/share/ostree/trusted.gpg.d/* +%{_prefix}/lib/systemd/system-preset/* %changelog +* Thu Aug 2 2018 Johnny Hughes +-Add new presets + * Mon Jun 15 2015 Colin Walters - 0:7-1.2.1 - Use centos-atomic-host consistently; the installer OS name and remote include the "-host" suffix, which we should be using too.