3 # (c) Thomas Lange, 2001-2012, lange@debian.org
5 error
=0; trap 'error=$(($?>$error?$?:$error))' ERR
# save maximum error code
7 echo $TIMEZONE > $target/etc
/timezone
8 cp -f /usr
/share
/zoneinfo
/${TIMEZONE} $target/etc
/localtime
10 if [ -n "$IPADDR" ]; then
11 ifclass DHCPC || ainsl
-s /etc
/hosts
"$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
13 ifclass DHCPC
&& ainsl
-s /etc
/hosts
"127.0.0.1 $HOSTNAME"
16 fcopy
-iM /etc
/hosts
/etc
/motd
18 # make /root accessible only by root
19 chmod -c 0700 $target/root
20 chown
-c root
:root
$target/root
21 # copy default dotfiles for root account
24 chmod -c 1777 ${target}/tmp
25 chown
-c 0:0 ${target}/tmp