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.
17 lines
311 B
Bash
Executable File
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/
|
|
|