From f4b264d474791d7207de00d6d66ac68654f2a335 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 8 Feb 2013 21:24:25 +0100 Subject: Renumbering hooks. --- share/hooks/0180-remove-systemd-machine-id.chroot | 9 +++++++++ share/hooks/0180-remove-temporary-files.chroot | 14 -------------- share/hooks/0190-remove-temporary-files.chroot | 14 ++++++++++++++ share/hooks/0190-remove-udev-persistent-rules.chroot | 16 ---------------- share/hooks/0200-remove-systemd-machine-id.chroot | 9 --------- share/hooks/0200-remove-udev-persistent-rules.chroot | 16 ++++++++++++++++ 6 files changed, 39 insertions(+), 39 deletions(-) create mode 100755 share/hooks/0180-remove-systemd-machine-id.chroot delete mode 100755 share/hooks/0180-remove-temporary-files.chroot create mode 100755 share/hooks/0190-remove-temporary-files.chroot delete mode 100755 share/hooks/0190-remove-udev-persistent-rules.chroot delete mode 100755 share/hooks/0200-remove-systemd-machine-id.chroot create mode 100755 share/hooks/0200-remove-udev-persistent-rules.chroot (limited to 'share') diff --git a/share/hooks/0180-remove-systemd-machine-id.chroot b/share/hooks/0180-remove-systemd-machine-id.chroot new file mode 100755 index 000000000..52ba38fd4 --- /dev/null +++ b/share/hooks/0180-remove-systemd-machine-id.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Remove systemd machine id. +# +# This removes systemd machine id that cache that makes each system unique. + +rm -f /etc/machine-id diff --git a/share/hooks/0180-remove-temporary-files.chroot b/share/hooks/0180-remove-temporary-files.chroot deleted file mode 100755 index fd220e030..000000000 --- a/share/hooks/0180-remove-temporary-files.chroot +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -e - -# Remove temporary files -rm -rf /var/cache/man/* - -for _DIRECTORY in /tmp /var/tmp -do - rm -rf ${_DIRECTORY} - - mkdir -p ${_DIRECTORY} - chmod 1777 ${_DIRECTORY} -done diff --git a/share/hooks/0190-remove-temporary-files.chroot b/share/hooks/0190-remove-temporary-files.chroot new file mode 100755 index 000000000..fd220e030 --- /dev/null +++ b/share/hooks/0190-remove-temporary-files.chroot @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Remove temporary files +rm -rf /var/cache/man/* + +for _DIRECTORY in /tmp /var/tmp +do + rm -rf ${_DIRECTORY} + + mkdir -p ${_DIRECTORY} + chmod 1777 ${_DIRECTORY} +done diff --git a/share/hooks/0190-remove-udev-persistent-rules.chroot b/share/hooks/0190-remove-udev-persistent-rules.chroot deleted file mode 100755 index 148ba30d1..000000000 --- a/share/hooks/0190-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 diff --git a/share/hooks/0200-remove-systemd-machine-id.chroot b/share/hooks/0200-remove-systemd-machine-id.chroot deleted file mode 100755 index 52ba38fd4..000000000 --- a/share/hooks/0200-remove-systemd-machine-id.chroot +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -set -e - -# Remove systemd machine id. -# -# This removes systemd machine id that cache that makes each system unique. - -rm -f /etc/machine-id diff --git a/share/hooks/0200-remove-udev-persistent-rules.chroot b/share/hooks/0200-remove-udev-persistent-rules.chroot new file mode 100755 index 000000000..148ba30d1 --- /dev/null +++ b/share/hooks/0200-remove-udev-persistent-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 -- cgit v1.2.3