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:
parent
9a59c0a2d6
commit
88befb1766
|
@ -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
|
||||
|
||||
|
|
|
@ -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 ]
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue