diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hooks/008-remove-udev-persistent-rules.chroot | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/share/hooks/008-remove-udev-persistent-rules.chroot b/share/hooks/008-remove-udev-persistent-rules.chroot index c7eec20b1..148ba30d1 100755 --- a/share/hooks/008-remove-udev-persistent-rules.chroot +++ b/share/hooks/008-remove-udev-persistent-rules.chroot @@ -7,4 +7,10 @@ set -e # 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 +for _FILE in /etc/udev/rules.d/*persistent-net.rules +do + if [ -e "${_FILE}" ] + then + : > ${_FILE} + fi +done |