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

This commit is contained in:
Daniel Baumann 2011-08-23 17:13:45 +02:00
parent 9a59c0a2d6
commit 88befb1766
3 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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 ]

View File

@ -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