[SCM] live-build branch, debian-next, updated. debian/3.0_a29-1-8-g88befb1

Daniel Baumann daniel at debian.org
Tue Aug 23 15:13:07 UTC 2011


The following commit has been merged in the debian-next branch:
commit 88befb176680d6f88bcdd11bd347d0f1680efdf5
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Aug 23 17:13:45 2011 +0200

    Moving removal of udev persistent rules from chroot_hacks to a hook, that way it can be easily skipped if desired.

diff --git a/functions/defaults.sh b/functions/defaults.sh
index 5538dfb..3fc895f 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -588,7 +588,8 @@ Set_defaults ()
 				update-apt-xapian-index \
 				update-mlocate-database \
 				remove-openssh-server-host-keys \
-				remove-python-py}"
+				remove-python-py \
+				remove-udev-persistent-rules}"
 			;;
 
 		kubuntu)
@@ -597,7 +598,8 @@ Set_defaults ()
 				update-mlocate-database \
 				remove-gnome-icon-cache \
 				remove-openssh-server-host-keys \
-				remove-python-py}"
+				remove-python-py \
+				remove-udev-persistent-rules}"
 			;;
 	esac
 
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks
index 501352f..c6e2775 100755
--- a/scripts/build/lb_chroot_hacks
+++ b/scripts/build/lb_chroot_hacks
@@ -140,9 +140,6 @@ do
 	esac
 done
 
-# Removing udev mac caching rule
-rm -f chroot/etc/udev/rules.d/*persistent-net.rules
-
 case "${LB_BINARY_IMAGES}" in
 	net)
 		if [ ! -f chroot/usr/bin/smbmount ]
diff --git a/share/hooks/005-remove-udev-persistent-rules.chroot b/share/hooks/005-remove-udev-persistent-rules.chroot
new file mode 100755
index 0000000..c7eec20
--- /dev/null
+++ b/share/hooks/005-remove-udev-persistent-rules.chroot
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Remove udev persistent rules.
+#
+# 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

-- 
live-build



More information about the debian-live-changes mailing list