1
0
mirror of synced 2026-04-25 20:11:20 +00:00
Files
xen-tools.xen-tools/hooks/common/60-copy-host-files
2017-08-04 00:45:11 +02:00

37 lines
464 B
Bash
Executable File

#!/bin/sh
#
# Copy some specific files from host nachine into the new images
#
prefix=$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 ${prefix}/etc
cp /etc/localtime ${prefix}/etc
#
# Log our finish
#
logMessage Script $0 finished