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.
12 lines
205 B
Bash
Executable File
12 lines
205 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This script copies some files and values to the new image so
|
|
# that it knows its own name.
|
|
#
|
|
|
|
|
|
prefix=$1
|
|
|
|
echo ${hostname} > ${prefix}/etc/hostname
|
|
echo ${hostname} > ${prefix}/etc/mailname
|