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 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_*
# 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
if [ -e "${_FILE}" ]
: > ${_FILE}
case "${LB_BINARY_IMAGES}" in
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