diff options
-rwxr-xr-x | scripts/build/lb_chroot_hacks | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks index d27d2d48b..804811683 100755 --- a/scripts/build/lb_chroot_hacks +++ b/scripts/build/lb_chroot_hacks @@ -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) |