From 21df9d55bb70d4a044a78eefb66798ec6529965e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 3 Nov 2017 03:27:10 +0100 Subject: [PATCH] Add qubes-core-dom0 to dnf protected packages set This will prevent its accidental removal, which would lead to completely broken system. --- rpm_spec/core-dom0-linux.spec | 5 +++++ system-config/dnf-protected-qubes-core-dom0.conf | 1 + 2 files changed, 6 insertions(+) create mode 100644 system-config/dnf-protected-qubes-core-dom0.conf diff --git a/rpm_spec/core-dom0-linux.spec b/rpm_spec/core-dom0-linux.spec index a6a24de..838fc1e 100644 --- a/rpm_spec/core-dom0-linux.spec +++ b/rpm_spec/core-dom0-linux.spec @@ -142,6 +142,10 @@ 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 +install -d $RPM_BUILD_ROOT/etc/dnf/protected.d +install -m 0644 system-config/dnf-protected-qubes-core-dom0.conf \ + $RPM_BUILD_ROOT/etc/dnf/protected.d/qubes-core-dom0.conf + touch $RPM_BUILD_ROOT/var/lib/qubes/.qubes-exclude-block-devices @@ -224,6 +228,7 @@ chmod -x /etc/grub.d/10_linux %config /etc/udev/rules.d/12-qubes-ignore-lvm-devices.rules %attr(0644,root,root) /etc/cron.d/qubes-sync-clock.cron %config(noreplace) /etc/profile.d/zz-disable-lesspipe.sh +%config(noreplace) /etc/dnf/protected.d/qubes-core-dom0.conf /usr/lib/systemd/system-preset/75-qubes-dom0.preset /usr/lib/systemd/system-preset/99-qubes-default-disable.preset /var/lib/qubes/.qubes-exclude-block-devices diff --git a/system-config/dnf-protected-qubes-core-dom0.conf b/system-config/dnf-protected-qubes-core-dom0.conf new file mode 100644 index 0000000..cd08751 --- /dev/null +++ b/system-config/dnf-protected-qubes-core-dom0.conf @@ -0,0 +1 @@ +qubes-core-dom0