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.
This commit is contained in:
parent
47550ee2b6
commit
b2307cfee6
22
debian/qubes-core-agent.postinst
vendored
22
debian/qubes-core-agent.postinst
vendored
@ -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
|
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
|
# Create /rw directory
|
||||||
mkdir -p /rw
|
mkdir -p /rw
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user