summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/008-remove-udev-persistent-rules.chroot8
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