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:
parent
45f1f9f0a0
commit
01e91f9c21
|
@ -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 \
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue