1
0
mirror of synced 2026-04-27 12:48:52 +00:00
Files
xen-tools.xen-tools/etc/hook.d/60-copy-host-files
steve f9752fd20c 2005-12-24 20:34:44 by steve
The hook scripts are now only passed a single argument on the command line - the name of the mount point.  The hostname is now accessible via the environment.
2005-12-24 20:34:44 +00:00

17 lines
311 B
Bash
Executable File

#!/bin/sh
#
# This script copies essential files from the host to the new
# system.
#
prefix=$1
cp /etc/resolv.conf ${prefix}/etc/
cp /etc/hosts ${prefix}/etc/
cp /etc/passwd ${prefix}/etc/
cp /etc/shadow ${prefix}/etc/
cp /etc/group ${prefix}/etc/
cp /etc/gshadow ${prefix}/etc/