Commit f5f8671a authored by Daniel Baumann's avatar Daniel Baumann
Browse files

Truncating udev persistent net rules in remove-udev-persistent-rules.chroot...

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.
parent 730ce848
......@@ -147,8 +147,14 @@ rm -f chroot/var/lib/dbus/machine-id
# they are regenerated by live-config.
rm -f chroot/etc/ssh/ssh_host_*_key chroot/etc/ssh/ssh_host_*_key.pub
# Removing udev mac caching rule
rm -f chroot/etc/udev/rules.d/*persistent-net.rules
# Truncating udev mac caching rule
for _FILE in /etc/udev/rules.d/*persistent-net.rules
do
if [ -e "${_FILE}" ]
then
: > ${_FILE}
fi
done
case "${LB_BINARY_IMAGES}" in
net)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment