Adding hook to disable 70-persistent-cd.rules udev rule to prevent udev remember the cd device name both the one of the build system and the one of the live system (Closes: #706926).

This commit is contained in:
Daniel Baumann 2013-05-06 20:07:09 +02:00
parent 45f1f9f0a0
commit 01e91f9c21
2 changed files with 14 additions and 0 deletions

View File

@ -507,6 +507,7 @@ Set_defaults ()
remove-openssh-server-host-keys \
remove-python-py \
remove-temporary-files \
remove-udev-persistent-cd-rules \
remove-udev-persistent-net-rules \
remove-systemd-machine-id \
update-apt-file-cache \

View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
# Remove udev persistent rules.
#
# This removes udev persistent rules that cache the host systems cd drive as
# well as the running live systems cd drive to remember its device name.
if [ -e /etc/udev/rules.d ]
then
> /etc/udev/rules.d/70-persistent-cd.rules
fi