From 01e91f9c2196571f16ed1bea8f4d72bddfa0ee6b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2013 20:07:09 +0200 Subject: 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). --- share/hooks/0200-remove-udev-persistent-cd-rules.chroot | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 share/hooks/0200-remove-udev-persistent-cd-rules.chroot (limited to 'share') 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 index 000000000..bdfe52d96 --- /dev/null +++ b/share/hooks/0200-remove-udev-persistent-cd-rules.chroot @@ -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 -- cgit v1.2.3