2012-01-06 21:31:12 +01:00
|
|
|
#
|
|
|
|
# The Qubes OS Project, http://www.qubes-os.org
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 Joanna Rutkowska <joanna@invisiblethingslab.com>
|
|
|
|
# Copyright (C) 2010 Rafal Wojtczuk <rafal@invisiblethingslab.com>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2013-03-07 05:09:13 +01:00
|
|
|
%{!?version: %define version %(cat version)}
|
2013-05-09 16:44:03 +02:00
|
|
|
%{!?backend_vmm: %define backend_vmm %(echo $BACKEND_VMM)}
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
Name: qubes-core-vm
|
|
|
|
Version: %{version}
|
2014-01-22 15:17:32 +01:00
|
|
|
Release: 1%{dist}
|
2012-01-06 21:31:12 +01:00
|
|
|
Summary: The Qubes core files for VM
|
|
|
|
|
|
|
|
Group: Qubes
|
|
|
|
Vendor: Invisible Things Lab
|
|
|
|
License: GPL
|
|
|
|
URL: http://www.qubes-os.org
|
|
|
|
Requires: fedora-release
|
|
|
|
Requires: yum-plugin-post-transaction-actions
|
|
|
|
Requires: NetworkManager >= 0.8.1-1
|
2013-02-08 18:54:00 +01:00
|
|
|
%if %{fedora} >= 18
|
|
|
|
# Fedora >= 18 defaults to firewalld, which isn't supported nor needed by Qubes
|
|
|
|
Requires: iptables-services
|
|
|
|
Conflicts: firewalld
|
|
|
|
%endif
|
2012-01-06 21:31:12 +01:00
|
|
|
Requires: /usr/bin/mimeopen
|
2012-06-06 02:59:07 +02:00
|
|
|
Requires: ethtool
|
2012-05-31 02:24:49 +02:00
|
|
|
Requires: tinyproxy
|
2012-06-22 21:59:15 +02:00
|
|
|
Requires: ntpdate
|
2013-02-07 02:52:05 +01:00
|
|
|
Requires: net-tools
|
2013-02-21 16:44:16 +01:00
|
|
|
Requires: nautilus-actions
|
2012-07-23 23:17:50 +02:00
|
|
|
Requires: qubes-core-vm-kernel-placeholder
|
2013-03-20 06:21:16 +01:00
|
|
|
Requires: qubes-utils
|
2014-05-21 20:21:15 +02:00
|
|
|
Requires: initscripts
|
2015-02-02 06:10:45 +01:00
|
|
|
# for qubes-desktop-run
|
|
|
|
Requires: pygobject3-base
|
2014-02-02 13:30:08 +01:00
|
|
|
%if %{fedora} >= 20
|
|
|
|
# gpk-update-viewer required by qubes-manager
|
|
|
|
Requires: gnome-packagekit-updater
|
|
|
|
%endif
|
2014-01-30 16:30:17 +01:00
|
|
|
Requires: ImageMagick
|
2014-03-28 06:52:31 +01:00
|
|
|
Requires: fakeroot
|
2014-07-03 02:05:39 +02:00
|
|
|
Requires: desktop-notification-daemon
|
2013-04-22 05:22:04 +02:00
|
|
|
Requires: qubes-libvchan
|
2013-06-07 05:20:55 +02:00
|
|
|
Requires: qubes-db-vm
|
2012-01-06 21:31:12 +01:00
|
|
|
Provides: qubes-core-vm
|
2012-01-10 11:23:27 +01:00
|
|
|
Obsoletes: qubes-core-commonvm
|
|
|
|
Obsoletes: qubes-core-appvm
|
|
|
|
Obsoletes: qubes-core-netvm
|
|
|
|
Obsoletes: qubes-core-proxyvm
|
2012-11-15 21:38:39 +01:00
|
|
|
Obsoletes: qubes-upgrade-vm < 2.0
|
2012-01-06 21:31:12 +01:00
|
|
|
BuildRequires: xen-devel
|
2015-02-02 19:04:02 +01:00
|
|
|
BuildRequires: qubes-utils-devel >= 3.0.1
|
2013-04-22 05:22:04 +02:00
|
|
|
BuildRequires: qubes-libvchan-%{backend_vmm}-devel
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
%define _builddir %(pwd)
|
|
|
|
|
2013-04-17 01:44:57 +02:00
|
|
|
%define kde_service_dir /usr/share/kde4/services
|
2012-01-06 21:31:12 +01:00
|
|
|
|
2015-01-14 02:27:34 +01:00
|
|
|
%define installOverridenServices() \
|
|
|
|
UNITDIR=/lib/systemd/system\
|
|
|
|
OVERRIDEDIR=/usr/lib/qubes/init\
|
|
|
|
# Install overriden services only when original exists\
|
|
|
|
for srv in %*; do\
|
|
|
|
if [ -f $UNITDIR/$srv.service ]; then\
|
|
|
|
cp $OVERRIDEDIR/$srv.service /etc/systemd/system/\
|
|
|
|
/bin/systemctl is-enabled $srv.service >/dev/null && /bin/systemctl --no-reload reenable $srv.service 2>/dev/null\
|
|
|
|
fi\
|
|
|
|
if [ -f $UNITDIR/$srv.socket -a -f $OVERRIDEDIR/$srv.socket ]; then\
|
|
|
|
cp $OVERRIDEDIR/$srv.socket /etc/systemd/system/\
|
|
|
|
/bin/systemctl is-enabled $srv.socket >/dev/null && /bin/systemctl --no-reload reenable $srv.socket 2>/dev/null\
|
|
|
|
fi\
|
|
|
|
if [ -f $UNITDIR/$srv.path -a -f $OVERRIDEDIR/$srv.path ]; then\
|
|
|
|
cp $OVERRIDEDIR/$srv.path /etc/systemd/system/\
|
|
|
|
/bin/systemctl is-enabled $srv.path >/dev/null && /bin/systemctl --no-reload reenable $srv.path 2>/dev/null\
|
|
|
|
fi\
|
|
|
|
done\
|
|
|
|
/bin/systemctl daemon-reload\
|
|
|
|
%{nil}
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
%description
|
|
|
|
The Qubes core files for installation inside a Qubes VM.
|
|
|
|
|
2012-12-12 04:12:59 +01:00
|
|
|
%prep
|
|
|
|
# we operate on the current directory, so no need to unpack anything
|
|
|
|
# symlink is to generate useful debuginfo packages
|
|
|
|
rm -f %{name}-%{version}
|
|
|
|
ln -sf . %{name}-%{version}
|
|
|
|
%setup -T -D
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
%build
|
2013-03-20 06:21:16 +01:00
|
|
|
for dir in qubes-rpc qrexec misc; do
|
2012-12-12 04:12:59 +01:00
|
|
|
(cd $dir; make)
|
|
|
|
done
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
%pre
|
2015-02-07 12:07:35 +01:00
|
|
|
# Make sure there is a qubes group
|
|
|
|
groupadd --force --system --gid 98 qubes
|
|
|
|
id -u 'user' >/dev/null 2>&1 || {
|
|
|
|
useradd --user-group --create-home --shell /bin/bash user
|
|
|
|
}
|
2015-02-13 21:00:54 +01:00
|
|
|
usermod -a --groups qubes user
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
if [ "$1" != 1 ] ; then
|
|
|
|
# do this whole %pre thing only when updating for the first time...
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p /var/lib/qubes
|
|
|
|
if [ -e /etc/fstab ] ; then
|
|
|
|
mv /etc/fstab /var/lib/qubes/fstab.orig
|
|
|
|
fi
|
|
|
|
|
2014-07-23 04:45:11 +02:00
|
|
|
usermod -p '' root
|
|
|
|
usermod -L user
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
|
2013-03-20 06:21:16 +01:00
|
|
|
(cd qrexec; make install DESTDIR=$RPM_BUILD_ROOT)
|
2013-04-17 01:44:57 +02:00
|
|
|
make install-vm DESTDIR=$RPM_BUILD_ROOT
|
2012-01-06 21:31:12 +01:00
|
|
|
|
2014-02-07 02:10:47 +01:00
|
|
|
# Create ghost files to silent rpmbuild warnings, those files will NOT be
|
|
|
|
# included in package
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/systemd/system
|
|
|
|
for f in ModemManager.service NetworkManager.service \
|
|
|
|
NetworkManager-wait-online.service cups.service cups.socket cups.path; do
|
|
|
|
cp $RPM_BUILD_ROOT/usr/lib/qubes/init/$f $RPM_BUILD_ROOT/etc/systemd/system/
|
|
|
|
done
|
|
|
|
|
2015-01-21 06:27:51 +01:00
|
|
|
%if %{fedora} < 21
|
|
|
|
cp -p $RPM_BUILD_ROOT/usr/lib/qubes/init/iptables $RPM_BUILD_ROOT/etc/sysconfig/iptables
|
|
|
|
cp -p $RPM_BUILD_ROOT/usr/lib/qubes/init/ip6tables $RPM_BUILD_ROOT/etc/sysconfig/ip6tables
|
|
|
|
%endif
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
%triggerin -- initscripts
|
2014-02-02 13:30:43 +01:00
|
|
|
if [ -e /etc/init/serial.conf ]; then
|
2014-02-06 23:56:18 +01:00
|
|
|
cp /usr/share/qubes/serial.conf /etc/init/serial.conf
|
2014-02-02 13:30:43 +01:00
|
|
|
fi
|
2012-01-06 21:31:12 +01:00
|
|
|
|
2014-02-08 10:21:55 +01:00
|
|
|
%triggerin -- pulseaudio-module-x11
|
|
|
|
sed -i '/^\(Not\|Only\)ShowIn/d' /etc/xdg/autostart/pulseaudio.desktop
|
|
|
|
echo 'NotShowIn=QUBES;' >> /etc/xdg/autostart/pulseaudio.desktop
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
%post
|
|
|
|
|
|
|
|
# disable some Upstart services
|
|
|
|
for F in plymouth-shutdown prefdm splash-manager start-ttys tty ; do
|
|
|
|
if [ -e /etc/init/$F.conf ]; then
|
|
|
|
mv -f /etc/init/$F.conf /etc/init/$F.conf.disabled
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
remove_ShowIn () {
|
|
|
|
if [ -e /etc/xdg/autostart/$1.desktop ]; then
|
|
|
|
sed -i '/^\(Not\|Only\)ShowIn/d' /etc/xdg/autostart/$1.desktop
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-10-31 18:57:01 +01:00
|
|
|
# reenable if disabled by some earlier version of package
|
|
|
|
remove_ShowIn abrt-applet.desktop imsettings-start.desktop
|
2014-04-23 01:31:57 +02:00
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
# don't want it at all
|
2014-10-31 18:57:01 +01:00
|
|
|
for F in deja-dup-monitor krb5-auth-dialog pulseaudio restorecond sealertauto gnome-power-manager gnome-sound-applet gnome-screensaver orca-autostart; do
|
2012-01-06 21:31:12 +01:00
|
|
|
if [ -e /etc/xdg/autostart/$F.desktop ]; then
|
|
|
|
remove_ShowIn $F
|
2012-11-03 02:07:34 +01:00
|
|
|
echo 'NotShowIn=QUBES;' >> /etc/xdg/autostart/$F.desktop
|
2012-01-06 21:31:12 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# don't want it in DisposableVM
|
|
|
|
for F in gcm-apply ; do
|
|
|
|
if [ -e /etc/xdg/autostart/$F.desktop ]; then
|
|
|
|
remove_ShowIn $F
|
2012-11-03 02:07:34 +01:00
|
|
|
echo 'NotShowIn=DisposableVM;' >> /etc/xdg/autostart/$F.desktop
|
2012-01-06 21:31:12 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# want it in AppVM only
|
2013-12-01 02:20:59 +01:00
|
|
|
for F in gnome-keyring-gpg gnome-keyring-pkcs11 gnome-keyring-secrets gnome-keyring-ssh gnome-settings-daemon user-dirs-update-gtk gsettings-data-convert ; do
|
2012-01-06 21:31:12 +01:00
|
|
|
if [ -e /etc/xdg/autostart/$F.desktop ]; then
|
|
|
|
remove_ShowIn $F
|
|
|
|
echo 'OnlyShowIn=GNOME;AppVM;' >> /etc/xdg/autostart/$F.desktop
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# remove existing rule to add own later
|
|
|
|
for F in gpk-update-icon nm-applet ; do
|
|
|
|
remove_ShowIn $F
|
|
|
|
done
|
|
|
|
|
|
|
|
echo 'OnlyShowIn=GNOME;UpdateableVM;' >> /etc/xdg/autostart/gpk-update-icon.desktop || :
|
2014-02-06 06:18:25 +01:00
|
|
|
%if %{fedora} >= 20
|
2014-02-02 13:34:27 +01:00
|
|
|
echo 'OnlyShowIn=GNOME;QUBES;' >> /etc/xdg/autostart/nm-applet.desktop || :
|
|
|
|
%else
|
2012-01-06 21:31:12 +01:00
|
|
|
echo 'OnlyShowIn=GNOME;NetVM;' >> /etc/xdg/autostart/nm-applet.desktop || :
|
2014-02-02 13:34:27 +01:00
|
|
|
%endif
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
# Create NetworkManager configuration if we do not have it
|
|
|
|
if ! [ -e /etc/NetworkManager/NetworkManager.conf ]; then
|
|
|
|
echo '[main]' > /etc/NetworkManager/NetworkManager.conf
|
|
|
|
echo 'plugins = keyfile' >> /etc/NetworkManager/NetworkManager.conf
|
|
|
|
echo '[keyfile]' >> /etc/NetworkManager/NetworkManager.conf
|
|
|
|
fi
|
2013-03-13 02:26:40 +01:00
|
|
|
/usr/lib/qubes/qubes-fix-nm-conf.sh
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Remove ip_forward setting from sysctl, so NM will not reset it
|
|
|
|
sed 's/^net.ipv4.ip_forward.*/#\0/' -i /etc/sysctl.conf
|
|
|
|
|
2014-05-12 00:37:22 +02:00
|
|
|
# Remove old firmware updates link
|
|
|
|
if [ -L /lib/firmware/updates ]; then
|
|
|
|
rm -f /lib/firmware/updates
|
2012-06-06 03:00:05 +02:00
|
|
|
fi
|
|
|
|
|
2012-10-04 05:29:10 +02:00
|
|
|
if ! grep -q '/etc/yum\.conf\.d/qubes-proxy\.conf' /etc/yum.conf; then
|
2012-05-31 02:37:53 +02:00
|
|
|
echo >> /etc/yum.conf
|
|
|
|
echo '# Yum does not support inclusion of config dir...' >> /etc/yum.conf
|
|
|
|
echo 'include=file:///etc/yum.conf.d/qubes-proxy.conf' >> /etc/yum.conf
|
|
|
|
fi
|
|
|
|
|
2013-02-08 02:31:41 +01:00
|
|
|
# Revert 'Prevent unnecessary updates in VMs':
|
2012-01-06 21:31:12 +01:00
|
|
|
sed -i -e '/^exclude = kernel/d' /etc/yum.conf
|
|
|
|
|
2012-05-08 23:41:53 +02:00
|
|
|
# qubes-core-vm has been broken for some time - it overrides /etc/hosts; restore original content
|
|
|
|
if ! grep -q localhost /etc/hosts; then
|
|
|
|
cat <<EOF > /etc/hosts
|
|
|
|
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 `hostname`
|
|
|
|
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
2014-09-29 05:03:25 +02:00
|
|
|
# ensure that hostname resolves to 127.0.0.1 resp. ::1 and that /etc/hosts is
|
|
|
|
# in the form expected by qubes-sysinit.sh
|
|
|
|
for ip in '127\.0\.0\.1' '::1'; do
|
|
|
|
if grep -q "^${ip}\(\s\|$\)" /etc/hosts; then
|
|
|
|
sed -i "/^${ip}\s/,+0s/\(\s`hostname`\)\+\(\s\|$\)/\2/g" /etc/hosts
|
|
|
|
sed -i "s/^${ip}\(\s\|$\).*$/\0 `hostname`/" /etc/hosts
|
|
|
|
else
|
|
|
|
echo "${ip} `hostname`" >> /etc/hosts
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2015-01-14 15:09:39 +01:00
|
|
|
# Copy ip(|6)tables into place if they do not already exist in filesystem.
|
|
|
|
# This prevents conflict with iptables-service
|
|
|
|
if [ ! -f '/etc/sysconfig/iptables' ]; then
|
|
|
|
cp -p /usr/lib/qubes/init/iptables /etc/sysconfig/iptables
|
|
|
|
fi
|
|
|
|
if [ ! -f '/etc/sysconfig/ip6tables' ]; then
|
|
|
|
cp -p /usr/lib/qubes/init/ip6tables /etc/sysconfig/ip6tables
|
|
|
|
fi
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
if [ "$1" != 1 ] ; then
|
|
|
|
# do the rest of %post thing only when updating for the first time...
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2012-01-30 14:22:35 +01:00
|
|
|
if [ -e /etc/init/serial.conf ] && ! [ -f /var/lib/qubes/serial.orig ] ; then
|
2012-01-06 21:31:12 +01:00
|
|
|
cp /etc/init/serial.conf /var/lib/qubes/serial.orig
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove most of the udev scripts to speed up the VM boot time
|
|
|
|
# Just leave the xen* scripts, that are needed if this VM was
|
|
|
|
# ever used as a net backend (e.g. as a VPN domain in the future)
|
|
|
|
#echo "--> Removing unnecessary udev scripts..."
|
|
|
|
mkdir -p /var/lib/qubes/removed-udev-scripts
|
|
|
|
for f in /etc/udev/rules.d/*
|
|
|
|
do
|
|
|
|
if [ $(basename $f) == "xen-backend.rules" ] ; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2013-03-13 02:26:40 +01:00
|
|
|
if [ $(basename $f) == "50-qubes-misc.rules" ] ; then
|
2012-01-06 21:31:12 +01:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2013-03-26 02:41:18 +01:00
|
|
|
if echo $f | grep -q qubes; then
|
2012-01-06 21:31:12 +01:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
mv $f /var/lib/qubes/removed-udev-scripts/
|
|
|
|
done
|
|
|
|
mkdir -p /rw
|
|
|
|
#rm -f /etc/mtab
|
|
|
|
#echo "--> Removing HWADDR setting from /etc/sysconfig/network-scripts/ifcfg-eth0"
|
|
|
|
#mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.orig
|
|
|
|
#grep -v HWADDR /etc/sysconfig/network-scripts/ifcfg-eth0.orig > /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
|
|
|
2014-05-21 20:21:15 +02:00
|
|
|
%triggerin -- notification-daemon
|
|
|
|
# Enable autostart of notification-daemon when installed
|
|
|
|
if [ ! -e /etc/xdg/autostart/notification-daemon.desktop ]; then
|
|
|
|
ln -s /usr/share/applications/notification-daemon.desktop /etc/xdg/autostart/
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%triggerin -- selinux-policy
|
|
|
|
#echo "--> Disabling SELinux..."
|
|
|
|
sed -e s/^SELINUX=.*$/SELINUX=disabled/ </etc/selinux/config >/etc/selinux/config.processed
|
|
|
|
mv /etc/selinux/config.processed /etc/selinux/config
|
|
|
|
setenforce 0 2>/dev/null
|
|
|
|
exit 0
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
%preun
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
# no more packages left
|
2012-09-27 18:25:18 +02:00
|
|
|
if [ -e /var/lib/qubes/fstab.orig ] ; then
|
2012-01-06 21:31:12 +01:00
|
|
|
mv /var/lib/qubes/fstab.orig /etc/fstab
|
2012-09-27 18:25:18 +02:00
|
|
|
fi
|
2012-01-06 21:31:12 +01:00
|
|
|
mv /var/lib/qubes/removed-udev-scripts/* /etc/udev/rules.d/
|
2012-09-27 18:25:18 +02:00
|
|
|
if [ -e /var/lib/qubes/serial.orig ] ; then
|
2012-01-06 21:31:12 +01:00
|
|
|
mv /var/lib/qubes/serial.orig /etc/init/serial.conf
|
2012-09-27 18:25:18 +02:00
|
|
|
fi
|
2012-01-06 21:31:12 +01:00
|
|
|
fi
|
|
|
|
|
2012-01-14 01:37:22 +01:00
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
2012-06-06 03:00:05 +02:00
|
|
|
|
2014-10-31 06:56:19 +01:00
|
|
|
if [ -L /lib/firmware/updates ]; then
|
2012-06-06 03:00:05 +02:00
|
|
|
rm /lib/firmware/updates
|
|
|
|
fi
|
2012-01-14 01:37:22 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
|
|
2012-01-06 21:31:12 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2012-12-12 04:12:59 +01:00
|
|
|
rm -f %{name}-%{version}
|
2012-01-06 21:31:12 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir /var/lib/qubes
|
|
|
|
%dir /var/run/qubes
|
|
|
|
%dir %attr(0775,user,user) /var/lib/qubes/dom0-updates
|
|
|
|
%{kde_service_dir}/qvm-copy.desktop
|
2014-03-24 05:19:16 +01:00
|
|
|
%{kde_service_dir}/qvm-move.desktop
|
2012-01-06 21:31:12 +01:00
|
|
|
%{kde_service_dir}/qvm-dvm.desktop
|
2013-03-13 02:26:40 +01:00
|
|
|
/etc/NetworkManager/dispatcher.d/30-qubes-external-ip
|
|
|
|
/etc/NetworkManager/dispatcher.d/qubes-nmhook
|
2014-07-23 04:45:11 +02:00
|
|
|
%config(noreplace) /etc/X11/xorg-preload-apps.conf
|
2012-07-12 14:21:44 +02:00
|
|
|
/etc/dispvm-dotfiles.tbz
|
2013-03-13 02:26:40 +01:00
|
|
|
/etc/dhclient.d/qubes-setup-dnat-to-ns.sh
|
2012-01-06 21:31:12 +01:00
|
|
|
/etc/fstab
|
|
|
|
/etc/pki/rpm-gpg/RPM-GPG-KEY-qubes*
|
2014-07-23 04:45:11 +02:00
|
|
|
%config(noreplace) /etc/polkit-1/localauthority/50-local.d/qubes-allow-all.pkla
|
|
|
|
%config(noreplace) /etc/polkit-1/rules.d/00-qubes-allow-all.rules
|
2013-03-20 06:21:16 +01:00
|
|
|
%dir /etc/qubes-rpc
|
2013-03-14 01:11:03 +01:00
|
|
|
/etc/qubes-rpc/qubes.Filecopy
|
|
|
|
/etc/qubes-rpc/qubes.OpenInVM
|
|
|
|
/etc/qubes-rpc/qubes.GetAppmenus
|
|
|
|
/etc/qubes-rpc/qubes.VMShell
|
|
|
|
/etc/qubes-rpc/qubes.SyncNtpClock
|
|
|
|
/etc/qubes-rpc/qubes.SuspendPre
|
|
|
|
/etc/qubes-rpc/qubes.SuspendPost
|
|
|
|
/etc/qubes-rpc/qubes.WaitForSession
|
2013-09-01 01:28:07 +02:00
|
|
|
/etc/qubes-rpc/qubes.DetachPciDevice
|
2013-11-09 19:01:57 +01:00
|
|
|
/etc/qubes-rpc/qubes.Backup
|
|
|
|
/etc/qubes-rpc/qubes.Restore
|
2014-01-13 05:07:23 +01:00
|
|
|
/etc/qubes-rpc/qubes.SelectFile
|
|
|
|
/etc/qubes-rpc/qubes.SelectDirectory
|
2014-01-30 16:30:17 +01:00
|
|
|
/etc/qubes-rpc/qubes.GetImageRGBA
|
2014-09-30 03:29:58 +02:00
|
|
|
/etc/qubes-rpc/qubes.SetDateTime
|
2014-07-23 04:45:11 +02:00
|
|
|
%config(noreplace) /etc/sudoers.d/qubes
|
2015-01-21 06:27:51 +01:00
|
|
|
%if %{fedora} < 21
|
|
|
|
%config(noreplace) /etc/sysconfig/iptables
|
|
|
|
%config(noreplace) /etc/sysconfig/ip6tables
|
|
|
|
%endif
|
2014-12-27 09:09:27 +01:00
|
|
|
/usr/lib/qubes/init/iptables
|
|
|
|
/usr/lib/qubes/init/ip6tables
|
2014-09-27 00:11:10 +02:00
|
|
|
%config(noreplace) /etc/tinyproxy/filter-updates
|
|
|
|
%config(noreplace) /etc/tinyproxy/tinyproxy-updates.conf
|
2014-07-23 04:45:11 +02:00
|
|
|
%config(noreplace) /etc/udev/rules.d/50-qubes-misc.rules
|
|
|
|
%config(noreplace) /etc/udev/rules.d/99-qubes-network.rules
|
2014-05-15 01:27:31 +02:00
|
|
|
/etc/xdg/autostart/00-qubes-show-hide-nm-applet.desktop
|
2013-02-21 16:44:16 +01:00
|
|
|
/etc/xdg/nautilus-actions/nautilus-actions.conf
|
2012-01-06 21:31:12 +01:00
|
|
|
/etc/xen/scripts/vif-route-qubes
|
2013-02-21 07:25:03 +01:00
|
|
|
%config(noreplace) /etc/yum.conf.d/qubes-proxy.conf
|
2014-11-20 16:52:55 +01:00
|
|
|
%config(noreplace) /etc/yum.repos.d/qubes-r3.repo
|
2012-06-08 00:34:11 +02:00
|
|
|
/etc/yum/pluginconf.d/yum-qubes-hooks.conf
|
2013-03-13 02:26:40 +01:00
|
|
|
/etc/yum/post-actions/qubes-trigger-sync-appmenus.action
|
2014-09-23 05:44:09 +02:00
|
|
|
/usr/lib/systemd/system/user@.service.d/90-session-stop-timeout.conf
|
2013-08-14 03:51:41 +02:00
|
|
|
/usr/sbin/qubes-serial-login
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/bin/qvm-copy-to-vm
|
2014-03-24 05:19:16 +01:00
|
|
|
/usr/bin/qvm-move-to-vm
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/bin/qvm-open-in-dvm
|
|
|
|
/usr/bin/qvm-open-in-vm
|
|
|
|
/usr/bin/qvm-run
|
2012-09-27 18:35:48 +02:00
|
|
|
/usr/bin/qvm-mru-entry
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/bin/xenstore-watch-qubes
|
2014-10-27 12:25:45 +01:00
|
|
|
/usr/bin/qubes-desktop-run
|
2015-02-17 04:18:34 +01:00
|
|
|
/usr/bin/qrexec-fork-server
|
2012-01-06 21:31:12 +01:00
|
|
|
%dir /usr/lib/qubes
|
2012-10-23 05:45:47 +02:00
|
|
|
/usr/lib/qubes/vusb-ctl.py*
|
2012-07-12 14:21:44 +02:00
|
|
|
/usr/lib/qubes/dispvm-prerun.sh
|
2012-06-22 21:59:15 +02:00
|
|
|
/usr/lib/qubes/sync-ntp-clock
|
2012-07-13 14:40:52 +02:00
|
|
|
/usr/lib/qubes/prepare-suspend
|
2012-01-30 14:20:02 +01:00
|
|
|
/usr/lib/qubes/network-manager-prepare-conf-dir
|
2014-02-07 02:16:39 +01:00
|
|
|
/usr/lib/qubes/show-hide-nm-applet.sh
|
2013-03-20 06:21:16 +01:00
|
|
|
/usr/lib/qubes/qrexec-agent
|
|
|
|
/usr/lib/qubes/qrexec-client-vm
|
|
|
|
/usr/lib/qubes/qrexec_client_vm
|
|
|
|
/usr/lib/qubes/qubes-rpc-multiplexer
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/lib/qubes/qfile-agent
|
2012-08-18 21:17:07 +02:00
|
|
|
%attr(4755,root,root) /usr/lib/qubes/qfile-unpacker
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/lib/qubes/qopen-in-vm
|
|
|
|
/usr/lib/qubes/qrun-in-vm
|
2013-03-13 02:26:40 +01:00
|
|
|
/usr/lib/qubes/qubes-download-dom0-updates.sh
|
|
|
|
/usr/lib/qubes/qubes-fix-nm-conf.sh
|
|
|
|
/usr/lib/qubes/qubes-setup-dnat-to-ns
|
|
|
|
/usr/lib/qubes/qubes-trigger-sync-appmenus.sh
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/lib/qubes/qvm-copy-to-vm.gnome
|
|
|
|
/usr/lib/qubes/qvm-copy-to-vm.kde
|
2014-03-24 05:19:16 +01:00
|
|
|
/usr/lib/qubes/qvm-move-to-vm.gnome
|
|
|
|
/usr/lib/qubes/qvm-move-to-vm.kde
|
2013-03-13 02:26:40 +01:00
|
|
|
/usr/lib/qubes/setup-ip
|
2013-11-09 19:01:57 +01:00
|
|
|
/usr/lib/qubes/tar2qfile
|
2012-01-06 21:31:12 +01:00
|
|
|
/usr/lib/qubes/vm-file-editor
|
2013-03-14 01:11:03 +01:00
|
|
|
/usr/lib/qubes/wrap-in-html-if-url.sh
|
2014-09-27 00:11:10 +02:00
|
|
|
/usr/lib/qubes/iptables-updates-proxy
|
2014-07-04 18:49:49 +02:00
|
|
|
/usr/lib/qubes/close-window
|
2012-06-05 19:28:59 +02:00
|
|
|
/usr/lib/yum-plugins/yum-qubes-hooks.py*
|
2013-03-13 02:26:40 +01:00
|
|
|
/usr/sbin/qubes-firewall
|
|
|
|
/usr/sbin/qubes-netwatcher
|
2014-02-06 23:56:18 +01:00
|
|
|
/usr/share/qubes/serial.conf
|
2012-01-14 01:37:22 +01:00
|
|
|
/usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override
|
2014-05-08 14:17:24 +02:00
|
|
|
/usr/share/glib-2.0/schemas/org.gnome.nautilus.gschema.override
|
2013-02-21 16:44:16 +01:00
|
|
|
/usr/share/file-manager/actions/qvm-copy-gnome.desktop
|
2014-03-24 05:19:16 +01:00
|
|
|
/usr/share/file-manager/actions/qvm-move-gnome.desktop
|
2013-02-21 16:44:16 +01:00
|
|
|
/usr/share/file-manager/actions/qvm-dvm-gnome.desktop
|
2013-11-14 21:38:27 +01:00
|
|
|
%dir /usr/share/qubes
|
|
|
|
/usr/share/qubes/mime-override/globs
|
2012-01-06 21:31:12 +01:00
|
|
|
%dir /home_volatile
|
|
|
|
%attr(700,user,user) /home_volatile/user
|
|
|
|
%dir /mnt/removable
|
2014-10-19 04:32:57 +02:00
|
|
|
%dir /rw
|
2012-01-06 21:31:12 +01:00
|
|
|
|
2012-01-10 12:09:09 +01:00
|
|
|
%package sysvinit
|
|
|
|
Summary: Qubes unit files for SysV init style or upstart
|
|
|
|
License: GPL v2 only
|
|
|
|
Group: Qubes
|
|
|
|
Requires: upstart
|
|
|
|
Requires: qubes-core-vm
|
|
|
|
Provides: qubes-core-vm-init-scripts
|
2012-01-10 12:10:16 +01:00
|
|
|
Conflicts: qubes-core-vm-systemd
|
2012-01-10 12:09:09 +01:00
|
|
|
|
|
|
|
%description sysvinit
|
|
|
|
The Qubes core startup configuration for SysV init (or upstart).
|
|
|
|
|
|
|
|
%files sysvinit
|
2013-03-13 02:26:40 +01:00
|
|
|
/etc/init.d/qubes-core
|
|
|
|
/etc/init.d/qubes-core-appvm
|
|
|
|
/etc/init.d/qubes-core-netvm
|
2012-03-09 01:03:59 +01:00
|
|
|
/etc/init.d/qubes-firewall
|
|
|
|
/etc/init.d/qubes-netwatcher
|
2014-09-27 00:11:10 +02:00
|
|
|
/etc/init.d/qubes-updates-proxy
|
2013-03-20 06:21:16 +01:00
|
|
|
/etc/init.d/qubes-qrexec-agent
|
2014-09-29 21:31:10 +02:00
|
|
|
/etc/sysconfig/modules/qubes-core.modules
|
|
|
|
/etc/sysconfig/modules/qubes-misc.modules
|
2012-01-10 12:09:09 +01:00
|
|
|
|
|
|
|
%post sysvinit
|
|
|
|
|
|
|
|
#echo "--> Turning off unnecessary services..."
|
|
|
|
# FIXME: perhaps there is more elegant way to do this?
|
|
|
|
for f in /etc/init.d/*
|
|
|
|
do
|
|
|
|
srv=`basename $f`
|
|
|
|
[ $srv = 'functions' ] && continue
|
|
|
|
[ $srv = 'killall' ] && continue
|
|
|
|
[ $srv = 'halt' ] && continue
|
|
|
|
[ $srv = 'single' ] && continue
|
|
|
|
[ $srv = 'reboot' ] && continue
|
2013-03-13 02:26:40 +01:00
|
|
|
[ $srv = 'qubes-gui' ] && continue
|
2012-01-10 12:09:09 +01:00
|
|
|
chkconfig $srv off
|
|
|
|
done
|
|
|
|
|
|
|
|
#echo "--> Enabling essential services..."
|
|
|
|
chkconfig rsyslog on
|
|
|
|
chkconfig haldaemon on
|
|
|
|
chkconfig messagebus on
|
|
|
|
chkconfig iptables on
|
2012-09-25 16:04:47 +02:00
|
|
|
chkconfig ip6tables on
|
2013-03-13 02:26:40 +01:00
|
|
|
chkconfig --add qubes-core || echo "WARNING: Cannot add service qubes-core!"
|
|
|
|
chkconfig qubes-core on || echo "WARNING: Cannot enable service qubes-core!"
|
|
|
|
chkconfig --add qubes-core-netvm || echo "WARNING: Cannot add service qubes-core-netvm!"
|
|
|
|
chkconfig qubes-core-netvm on || echo "WARNING: Cannot enable service qubes-core-netvm!"
|
|
|
|
chkconfig --add qubes-core-appvm || echo "WARNING: Cannot add service qubes-core-appvm!"
|
|
|
|
chkconfig qubes-core-appvm on || echo "WARNING: Cannot enable service qubes-core-appvm!"
|
2012-06-26 03:31:28 +02:00
|
|
|
chkconfig --add qubes-firewall || echo "WARNING: Cannot add service qubes-firewall!"
|
|
|
|
chkconfig qubes-firewall on || echo "WARNING: Cannot enable service qubes-firewall!"
|
|
|
|
chkconfig --add qubes-netwatcher || echo "WARNING: Cannot add service qubes-netwatcher!"
|
|
|
|
chkconfig qubes-netwatcher on || echo "WARNING: Cannot enable service qubes-netwatcher!"
|
2014-09-27 00:11:10 +02:00
|
|
|
chkconfig --add qubes-updates-proxy || echo "WARNING: Cannot add service qubes-updates-proxy!"
|
|
|
|
chkconfig qubes-updates-proxy on || echo "WARNING: Cannot enable service qubes-updates-proxy!"
|
2013-03-20 06:21:16 +01:00
|
|
|
chkconfig --add qubes-qrexec-agent || echo "WARNING: Cannot add service qubes-qrexec-agent!"
|
|
|
|
chkconfig qubes-qrexec-agent on || echo "WARNING: Cannot enable service qubes-qrexec-agent!"
|
2012-01-10 12:09:09 +01:00
|
|
|
|
|
|
|
# TODO: make this not display the silly message about security context...
|
|
|
|
sed -i s/^id:.:initdefault:/id:3:initdefault:/ /etc/inittab
|
|
|
|
|
|
|
|
%preun sysvinit
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
# no more packages left
|
2013-03-13 02:26:40 +01:00
|
|
|
chkconfig qubes-core off
|
|
|
|
chkconfig qubes-core-netvm off
|
|
|
|
chkconfig qubes-core-appvm off
|
2012-03-09 01:03:59 +01:00
|
|
|
chkconfig qubes-firewall off
|
|
|
|
chkconfig qubes-netwatcher off
|
2014-09-27 00:11:10 +02:00
|
|
|
chkconfig qubes-updates-proxy off
|
2013-03-20 06:21:16 +01:00
|
|
|
chkconfig qubes-qrexec-agent off
|
2012-01-10 12:09:09 +01:00
|
|
|
fi
|
2012-01-10 12:10:16 +01:00
|
|
|
|
|
|
|
%package systemd
|
|
|
|
Summary: Qubes unit files for SystemD init style
|
|
|
|
License: GPL v2 only
|
|
|
|
Group: Qubes
|
|
|
|
Requires: systemd
|
2012-01-14 01:40:10 +01:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
2012-01-10 12:10:16 +01:00
|
|
|
Requires: qubes-core-vm
|
|
|
|
Provides: qubes-core-vm-init-scripts
|
|
|
|
Conflicts: qubes-core-vm-sysvinit
|
|
|
|
|
|
|
|
%description systemd
|
|
|
|
The Qubes core startup configuration for SystemD init.
|
|
|
|
|
|
|
|
%files systemd
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/lib/systemd/system/qubes-dvm.service
|
|
|
|
/lib/systemd/system/qubes-misc-post.service
|
|
|
|
/lib/systemd/system/qubes-firewall.service
|
|
|
|
/lib/systemd/system/qubes-netwatcher.service
|
|
|
|
/lib/systemd/system/qubes-network.service
|
|
|
|
/lib/systemd/system/qubes-sysinit.service
|
2012-05-01 01:14:04 +02:00
|
|
|
/lib/systemd/system/qubes-update-check.service
|
|
|
|
/lib/systemd/system/qubes-update-check.timer
|
2014-09-27 00:11:10 +02:00
|
|
|
/lib/systemd/system/qubes-updates-proxy.service
|
2013-03-20 06:21:16 +01:00
|
|
|
/lib/systemd/system/qubes-qrexec-agent.service
|
2015-02-08 00:08:26 +01:00
|
|
|
/lib/systemd/system-preset/75-qubes-vm.preset
|
2014-09-29 21:31:10 +02:00
|
|
|
/lib/modules-load.d/qubes-core.conf
|
|
|
|
/lib/modules-load.d/qubes-misc.conf
|
2012-01-10 12:10:16 +01:00
|
|
|
%dir /usr/lib/qubes/init
|
|
|
|
/usr/lib/qubes/init/prepare-dvm.sh
|
|
|
|
/usr/lib/qubes/init/network-proxy-setup.sh
|
|
|
|
/usr/lib/qubes/init/misc-post.sh
|
2012-02-06 15:29:36 +01:00
|
|
|
/usr/lib/qubes/init/misc-post-stop.sh
|
2012-01-10 12:10:16 +01:00
|
|
|
/usr/lib/qubes/init/qubes-sysinit.sh
|
2014-01-30 02:53:08 +01:00
|
|
|
/usr/lib/qubes/init/ModemManager.service
|
2012-01-10 12:10:16 +01:00
|
|
|
/usr/lib/qubes/init/NetworkManager.service
|
2013-02-08 02:30:57 +01:00
|
|
|
/usr/lib/qubes/init/NetworkManager-wait-online.service
|
2012-01-10 12:10:16 +01:00
|
|
|
/usr/lib/qubes/init/cups.service
|
2013-12-16 21:10:37 +01:00
|
|
|
/usr/lib/qubes/init/cups.socket
|
|
|
|
/usr/lib/qubes/init/cups.path
|
2012-01-10 12:10:16 +01:00
|
|
|
/usr/lib/qubes/init/ntpd.service
|
2013-12-17 01:29:26 +01:00
|
|
|
/usr/lib/qubes/init/chronyd.service
|
2015-01-14 02:46:29 +01:00
|
|
|
/usr/lib/qubes/init/crond.service
|
2014-01-30 02:53:08 +01:00
|
|
|
%ghost %attr(0644,root,root) /etc/systemd/system/ModemManager.service
|
2012-01-10 12:10:16 +01:00
|
|
|
%ghost %attr(0644,root,root) /etc/systemd/system/NetworkManager.service
|
2013-02-08 02:30:57 +01:00
|
|
|
%ghost %attr(0644,root,root) /etc/systemd/system/NetworkManager-wait-online.service
|
2012-01-10 12:10:16 +01:00
|
|
|
%ghost %attr(0644,root,root) /etc/systemd/system/cups.service
|
2013-12-16 21:10:37 +01:00
|
|
|
%ghost %attr(0644,root,root) /etc/systemd/system/cups.socket
|
|
|
|
%ghost %attr(0644,root,root) /etc/systemd/system/cups.path
|
2012-01-10 12:10:16 +01:00
|
|
|
|
|
|
|
%post systemd
|
|
|
|
|
2014-09-27 00:11:10 +02:00
|
|
|
for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-firewall qubes-updates-proxy qubes-qrexec-agent; do
|
2015-01-14 02:28:06 +01:00
|
|
|
/bin/systemctl --no-reload enable $srv.service 2> /dev/null
|
2012-01-10 12:10:16 +01:00
|
|
|
done
|
|
|
|
|
2015-01-14 02:28:06 +01:00
|
|
|
/bin/systemctl --no-reload enable qubes-update-check.timer 2> /dev/null
|
2012-05-01 01:14:04 +02:00
|
|
|
|
2012-01-10 12:10:16 +01:00
|
|
|
# Set default "runlevel"
|
|
|
|
rm -f /etc/systemd/system/default.target
|
|
|
|
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
|
|
|
|
2015-02-08 00:08:26 +01:00
|
|
|
grep '^[[:space:]]*[^#;]' /lib/systemd/system-preset/75-qubes-vm.preset | while read action unit_name; do
|
|
|
|
case "$action" in
|
|
|
|
(disable)
|
|
|
|
if [ -f /lib/systemd/system/$unit_name.service ]; then
|
|
|
|
if fgrep -q '[Install]' /lib/systemd/system/$unit_name; then
|
|
|
|
/bin/systemctl --no-reload preset $unit_name 2> /dev/null
|
|
|
|
else
|
|
|
|
# forcibly disable
|
|
|
|
ln -sf /dev/null /etc/systemd/system/$unit_name
|
|
|
|
fi
|
2012-01-10 12:10:16 +01:00
|
|
|
fi
|
2015-02-08 00:08:26 +01:00
|
|
|
;;
|
|
|
|
esac
|
2012-01-10 12:10:16 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
rm -f /etc/systemd/system/getty.target.wants/getty@tty*.service
|
|
|
|
|
|
|
|
# Enable some services
|
2015-01-14 02:28:06 +01:00
|
|
|
/bin/systemctl --no-reload enable iptables.service 2> /dev/null
|
|
|
|
/bin/systemctl --no-reload enable ip6tables.service 2> /dev/null
|
|
|
|
/bin/systemctl --no-reload enable rsyslog.service 2> /dev/null
|
|
|
|
/bin/systemctl --no-reload enable ntpd.service 2> /dev/null
|
2015-01-14 02:46:29 +01:00
|
|
|
/bin/systemctl --no-reload enable crond.service 2> /dev/null
|
2014-07-04 18:48:35 +02:00
|
|
|
|
|
|
|
# Enable cups only when it is real SystemD service
|
2015-01-14 02:28:06 +01:00
|
|
|
[ -e /lib/systemd/system/cups.service ] && /bin/systemctl --no-reload enable cups.service 2> /dev/null
|
|
|
|
|
|
|
|
/bin/systemctl daemon-reload
|
2014-07-04 18:48:35 +02:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%triggerin systemd -- NetworkManager
|
2015-01-14 02:27:34 +01:00
|
|
|
%installOverridenServices ModemManager NetworkManager NetworkManager-wait-online
|
2012-07-12 03:48:34 +02:00
|
|
|
# Disable D-BUS activation of NetworkManager - in AppVm it causes problems (eg PackageKit timeouts)
|
|
|
|
/bin/systemctl mask dbus-org.freedesktop.NetworkManager.service 2> /dev/null
|
2013-09-01 02:02:55 +02:00
|
|
|
# Fix for https://bugzilla.redhat.com/show_bug.cgi?id=974811
|
|
|
|
/bin/systemctl enable NetworkManager-dispatcher.service 2> /dev/null
|
2014-07-04 18:48:35 +02:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%triggerin systemd -- cups
|
2015-01-14 02:27:34 +01:00
|
|
|
%installOverridenServices cups
|
2014-07-04 18:48:35 +02:00
|
|
|
exit 0
|
2012-01-14 01:40:54 +01:00
|
|
|
|
2015-01-14 02:46:29 +01:00
|
|
|
%triggerin systemd -- cronie
|
|
|
|
%installOverridenServices crond
|
|
|
|
exit 0
|
|
|
|
|
2014-07-04 18:48:35 +02:00
|
|
|
%triggerin systemd -- haveged
|
|
|
|
/bin/systemctl enable haveged.service 2> /dev/null
|
2012-01-14 01:40:54 +01:00
|
|
|
exit 0
|
2012-01-10 12:10:16 +01:00
|
|
|
|
|
|
|
%postun systemd
|
|
|
|
|
|
|
|
#Do not run this part on upgrades
|
|
|
|
if [ "$1" != 0 ] ; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2014-01-05 05:38:10 +01:00
|
|
|
for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-qrexec-agent; do
|
2012-01-10 12:10:16 +01:00
|
|
|
/bin/systemctl disable $srv.service
|
|
|
|
do
|