From 45f1f9f0a0783479dec16138fdd095291577c843 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2013 19:40:42 +0200 Subject: Renaming remove-udev-persistent-rules.chroot hook to remove-udev-persistent-net-rules.chroot for future additional udev hooks. --- functions/defaults.sh | 2 +- share/hooks/0200-remove-udev-persistent-net-rules.chroot | 16 ++++++++++++++++ share/hooks/0200-remove-udev-persistent-rules.chroot | 16 ---------------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100755 share/hooks/0200-remove-udev-persistent-net-rules.chroot delete mode 100755 share/hooks/0200-remove-udev-persistent-rules.chroot diff --git a/functions/defaults.sh b/functions/defaults.sh index dfd3bddef..049918759 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -507,7 +507,7 @@ Set_defaults () remove-openssh-server-host-keys \ remove-python-py \ remove-temporary-files \ - remove-udev-persistent-rules \ + remove-udev-persistent-net-rules \ remove-systemd-machine-id \ update-apt-file-cache \ update-apt-xapian-index \ diff --git a/share/hooks/0200-remove-udev-persistent-net-rules.chroot b/share/hooks/0200-remove-udev-persistent-net-rules.chroot new file mode 100755 index 000000000..148ba30d1 --- /dev/null +++ b/share/hooks/0200-remove-udev-persistent-net-rules.chroot @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# Remove udev persistent rules. +# +# This removes udev persistent rules that cache the host systems mac address to +# remember its device name. + +for _FILE in /etc/udev/rules.d/*persistent-net.rules +do + if [ -e "${_FILE}" ] + then + : > ${_FILE} + fi +done diff --git a/share/hooks/0200-remove-udev-persistent-rules.chroot b/share/hooks/0200-remove-udev-persistent-rules.chroot deleted file mode 100755 index 148ba30d1..000000000 --- a/share/hooks/0200-remove-udev-persistent-rules.chroot +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -set -e - -# Remove udev persistent rules. -# -# This removes udev persistent rules that cache the host systems mac address to -# remember its device name. - -for _FILE in /etc/udev/rules.d/*persistent-net.rules -do - if [ -e "${_FILE}" ] - then - : > ${_FILE} - fi -done -- cgit v1.2.3