1
0
mirror of synced 2026-04-26 04:16:54 +00:00
Files
xen-tools.xen-tools/hooks/common/60-copy-host-files
Axel Beckert cc2a6d4e41 Change all occurrences of $prefix in hooks and roles with $TARGET
"target" is also the name used in the debian installer for the
installation target while "prefix" is too ambiguous.
2013-04-18 21:01:19 +02:00

38 lines
471 B
Bash
Executable File

#!/bin/sh
#
# Copy files from a 'skel' directory, if present, into the
# new images
#
TARGET=$1
#
# Source our common functions
#
if [ -e /usr/share/xen-tools/common.sh ]; then
. /usr/share/xen-tools/common.sh
else
. ./hooks/common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
#
# Copy "required" files from our host.
#
cp /etc/timezone ${TARGET}/etc
cp /etc/localtime ${TARGET}/etc
#
# Log our finish
#
logMessage Script $0 finished