diff --git a/Makefile b/Makefile index 1a80e49..4717ce0 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,12 @@ help: rpms: rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm.spec + rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-kernel-placeholder.spec rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0.spec rpm --addsign \ $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*.rpm \ - $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*.rpm + $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*.rpm \ + $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*.rpm rpms-vaio-fixes: rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0-vaio-fixes.spec @@ -29,6 +31,7 @@ update-repo-current: for vmrepo in ../yum/current-release/current/vm/* ; do \ dist=$$(basename $$vmrepo) ;\ ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*$$dist*.rpm $$vmrepo/rpm/ ;\ + ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\ done update-repo-current-testing: @@ -37,6 +40,7 @@ update-repo-current-testing: for vmrepo in ../yum/current-release/current-testing/vm/* ; do \ dist=$$(basename $$vmrepo) ;\ ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*$$dist*.rpm $$vmrepo/rpm/ ;\ + ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\ done update-repo-unstable: @@ -45,6 +49,7 @@ update-repo-unstable: for vmrepo in ../yum/current-release/unstable/vm/* ; do \ dist=$$(basename $$vmrepo) ;\ ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*$$dist*.rpm $$vmrepo/rpm/ ;\ + ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\ done update-repo-installer: diff --git a/rpm_spec/core-vm-kernel-placeholder.spec b/rpm_spec/core-vm-kernel-placeholder.spec new file mode 100644 index 0000000..2533d47 --- /dev/null +++ b/rpm_spec/core-vm-kernel-placeholder.spec @@ -0,0 +1,19 @@ +# 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: 1%{dist} +Vendor: Invisible Things Lab +License: GPL +Group: Qubes +URL: http://www.qubes-os.org +# choose the oldest Qubes-supported VM kernel +Provides: kernel = 3.2.7 + +%description +Placeholder for kernel package as it is managed by Dom0. + +%files diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 7e2b034..f9ba774 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -39,6 +39,7 @@ Requires: /usr/bin/mimeopen Requires: ethtool Requires: tinyproxy Requires: ntpdate +Requires: qubes-core-vm-kernel-placeholder Provides: qubes-core-vm Obsoletes: qubes-core-commonvm Obsoletes: qubes-core-appvm diff --git a/version_vm b/version_vm index a2ad95c..be2c5f1 100644 --- a/version_vm +++ b/version_vm @@ -1 +1 @@ -1.7.30 +1.7.36 diff --git a/vm-init.d/qubes_core_appvm b/vm-init.d/qubes_core_appvm index c6c62f7..ebd3e01 100755 --- a/vm-init.d/qubes_core_appvm +++ b/vm-init.d/qubes_core_appvm @@ -13,7 +13,7 @@ possibly_run_save_script() echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64()' >/tmp/qubes_save_script chmod 755 /tmp/qubes_save_script Xorg -config /etc/X11/xorg-preload-apps.conf :0 & - sleep 2 + while ! [ -S /tmp/.X11-unix/X0 ]; do sleep 0.5; done DISPLAY=:0 su - user -c /tmp/qubes_save_script killall Xorg } diff --git a/vm-systemd/prepare-dvm.sh b/vm-systemd/prepare-dvm.sh index 86b6a74..d0f4570 100755 --- a/vm-systemd/prepare-dvm.sh +++ b/vm-systemd/prepare-dvm.sh @@ -7,7 +7,7 @@ possibly_run_save_script() echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64()' >/tmp/qubes_save_script chmod 755 /tmp/qubes_save_script Xorg -config /etc/X11/xorg-preload-apps.conf :0 & - sleep 2 + while ! [ -S /tmp/.X11-unix/X0 ]; do sleep 0.5; done DISPLAY=:0 su - user -c /tmp/qubes_save_script killall Xorg }