From b2307cfee60a86ab8b19b23d49d071835fbce5e8 Mon Sep 17 00:00:00 2001 From: HW42 Date: Mon, 2 Feb 2015 23:37:22 +0100 Subject: [PATCH] debian: postinst: don't remove /etc/udev/rules.d/* removing /etc/udev/rules.d/* in debian makes no sense since this folder is only for custom udev rules. --- debian/qubes-core-agent.postinst | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/debian/qubes-core-agent.postinst b/debian/qubes-core-agent.postinst index e0f7d71..179f667 100755 --- a/debian/qubes-core-agent.postinst +++ b/debian/qubes-core-agent.postinst @@ -255,28 +255,6 @@ case "${1}" in dpkg-divert --divert /etc/init/serial.conf.qubes-orig --package qubes-core-agent --rename --add /etc/init/serial.conf - # 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 - - if [ $(basename ${f}) == "50-qubes-misc.rules" ] ; then - continue - fi - - if echo ${f} | grep -q qubes; then - continue - fi - - mv ${f} /var/lib/qubes/removed-udev-scripts/ - done - # Create /rw directory mkdir -p /rw