Adding hook to disable 70-persistent-cd.rules udev rule to prevent udev remember...
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 18:07:09 +0000 (20:07 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 18:07:09 +0000 (20:07 +0200)
functions/defaults.sh
share/hooks/0200-remove-udev-persistent-cd-rules.chroot [new file with mode: 0755]

index 0499187..d2b7105 100755 (executable)
@@ -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 \
diff --git a/share/hooks/0200-remove-udev-persistent-cd-rules.chroot b/share/hooks/0200-remove-udev-persistent-cd-rules.chroot
new file mode 100755 (executable)
index 0000000..bdfe52d
--- /dev/null
@@ -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