Get rid of qubes-core-vm-kernel-placeholder
Since /lib/modules is not mounted read-only anymore (only a selected subdirectory there), it is no longer required to prevent kernel package installation. Even more - since PV Grub being supported, it makes sense to have kernel installed in the VM. QubesOS/qubes-issues#1354
This commit is contained in:
parent
ba28c9f140
commit
7cca1b23ee
4
Makefile
4
Makefile
@ -25,11 +25,9 @@ rpms: rpms-vm
|
||||
rpms-vm:
|
||||
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm.spec
|
||||
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-doc.spec
|
||||
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-kernel-placeholder.spec
|
||||
rpm --addsign \
|
||||
$(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION)*.rpm \
|
||||
$(RPMS_DIR)/x86_64/qubes-core-vm-doc-*$(VERSION)*.rpm \
|
||||
$(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*.rpm
|
||||
$(RPMS_DIR)/x86_64/qubes-core-vm-doc-*$(VERSION)*.rpm
|
||||
|
||||
rpms-dom0:
|
||||
@true
|
||||
|
@ -1,7 +1,6 @@
|
||||
ifeq ($(PACKAGE_SET),vm)
|
||||
RPM_SPEC_FILES := rpm_spec/core-vm.spec \
|
||||
rpm_spec/core-vm-doc.spec \
|
||||
rpm_spec/core-vm-kernel-placeholder.spec
|
||||
rpm_spec/core-vm-doc.spec
|
||||
|
||||
ifneq ($(filter $(DISTRIBUTION), debian qubuntu),)
|
||||
DEBIAN_BUILD_DIRS := debian
|
||||
|
@ -94,9 +94,6 @@ update_qubesconfig() {
|
||||
# echo 'include=file:///etc/yum.conf.d/qubes-proxy.conf' >> /etc/yum.conf
|
||||
#fi
|
||||
|
||||
# Revert 'Prevent unnecessary updates in VMs':
|
||||
#sed -i -e '/^exclude = kernel/d' /etc/yum.conf
|
||||
|
||||
# Location of files which contains list of protected files
|
||||
mkdir -p /etc/qubes/protected-files.d
|
||||
PROTECTED_FILE_LIST='/etc/qubes/protected-files.d'
|
||||
|
3
debian/control
vendored
3
debian/control
vendored
@ -63,6 +63,3 @@ Conflicts: ${diverted-files}, qubes-core-agent-linux, firewalld, qubes-core-vm-s
|
||||
Description: Qubes core agent
|
||||
This package includes various daemons necessary for qubes domU support,
|
||||
such as qrexec.
|
||||
|
||||
# Unresolved depends that exist in rpm_spec
|
||||
#qubes-core-vm-kernel-placeholder, qubes-core-vm,
|
||||
|
@ -1,36 +0,0 @@
|
||||
# We don't install kernel pkg in VM, but some other pkgs depends on it.
|
||||
# Done as separate subpackage because yum allows multiple versions of kernel
|
||||
# pkg installed simultaneusly - and of course we don't want multiple versions
|
||||
# of qubes-core-vm
|
||||
Name: qubes-core-vm-kernel-placeholder
|
||||
Summary: Placeholder for kernel package as it is managed by Dom0
|
||||
Version: 1.0
|
||||
Release: 3%{dist}
|
||||
Vendor: Invisible Things Lab
|
||||
License: GPL
|
||||
Group: Qubes
|
||||
URL: http://www.qubes-os.org
|
||||
# template released with 1.0-rc1 have kernel-debug installed by mistake. This
|
||||
# line is required to smooth upgrade.
|
||||
Obsoletes: kernel-debug
|
||||
# this driver require exact kernel-drm-nouveau version; as isn't needed in VM,
|
||||
# just remove it
|
||||
Obsoletes: xorg-x11-drv-nouveau
|
||||
Provides: xorg-x11-drv-nouveau
|
||||
# choose the oldest Qubes-supported VM kernel
|
||||
Provides: kernel = 3.7.4
|
||||
Provides: kernel-modules-extra
|
||||
# for xl2tpd
|
||||
Provides: kmod(l2tp_ppp.ko)
|
||||
|
||||
%description
|
||||
Placeholder for kernel package as it is managed by Dom0.
|
||||
|
||||
%install
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/modules
|
||||
|
||||
%files
|
||||
%if %{fedora} > 18
|
||||
%dir /lib/modules
|
||||
%endif
|
@ -47,7 +47,6 @@ Requires: tinyproxy
|
||||
Requires: ntpdate
|
||||
Requires: net-tools
|
||||
Requires: nautilus-python
|
||||
Requires: qubes-core-vm-kernel-placeholder
|
||||
Requires: qubes-utils >= 3.1.2
|
||||
Requires: initscripts
|
||||
# for qubes-desktop-run
|
||||
@ -74,6 +73,7 @@ Obsoletes: qubes-core-commonvm
|
||||
Obsoletes: qubes-core-appvm
|
||||
Obsoletes: qubes-core-netvm
|
||||
Obsoletes: qubes-core-proxyvm
|
||||
Obsoletes: qubes-core-vm-kernel-placeholder <= 1.0
|
||||
Obsoletes: qubes-upgrade-vm < 3.1
|
||||
BuildRequires: xen-devel
|
||||
BuildRequires: libX11-devel
|
||||
@ -160,9 +160,6 @@ fi
|
||||
# And actually setup the proxy usage in package managers
|
||||
/usr/lib/qubes/update-proxy-configs
|
||||
|
||||
# Revert 'Prevent unnecessary updates in VMs':
|
||||
sed -i -e '/^exclude = kernel/d' /etc/yum.conf
|
||||
|
||||
# Location of files which contains list of protected files
|
||||
mkdir -p /etc/qubes/protected-files.d
|
||||
PROTECTED_FILE_LIST='/etc/qubes/protected-files.d'
|
||||
|
Loading…
Reference in New Issue
Block a user