[SCM] live-build branch, debian-next, updated. debian/3.0_a51-1-4-g3cd505f

Daniel Baumann daniel at debian.org
Sun Jul 8 17:23:54 UTC 2012


The following commit has been merged in the debian-next branch:
commit 3cd505f7d4b2650d346e00e7f305328f26233674
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Jul 8 19:23:12 2012 +0200

    Truncating udev persistent net rules in remove-udev-persistent-rules.chroot hook rather than to remove them (Closes: #680763).
    
    This allows to have non-persistent net devices with persistence properly,
    see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680763#10 for more information.

diff --git a/share/hooks/008-remove-udev-persistent-rules.chroot b/share/hooks/008-remove-udev-persistent-rules.chroot
index c7eec20..148ba30 100755
--- a/share/hooks/008-remove-udev-persistent-rules.chroot
+++ b/share/hooks/008-remove-udev-persistent-rules.chroot
@@ -7,4 +7,10 @@ set -e
 # This removes udev persistent rules that cache the host systems mac address to
 # remember its device name.
 
-rm -f /etc/udev/rules.d/*persistent-net.rules
+for _FILE in /etc/udev/rules.d/*persistent-net.rules
+do
+	if [ -e "${_FILE}" ]
+	then
+		: > ${_FILE}
+	fi
+done

-- 
live-build



More information about the debian-live-changes mailing list