blob: 193a12f96cfc6f6fa1805f077c763d696afe9fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
export RUN_DEFAULT_FUNCS="no"
export ROOT=/tmp/stage1root
source /tmp/chroot-functions.sh
update_env_settings
show_debug
setup_gcc
setup_binutils
# Stage1 is not going to have anything in zoneinfo, so save our Factory timezone
if [ -d "${ROOT}/usr/share/zoneinfo" ]
then
rm -f "${ROOT}/etc/localtime"
ln -s ../usr/share/zoneinfo/Factory "${ROOT}/etc/localtime"
else
echo UTC > "${ROOT}/etc/TZ"
fi
# Clean out man, info and doc files
rm -rf "${ROOT}"/usr/share/{man,doc,info}/*
# unset ROOT for safety (even though cleanup_stages doesn't use it)
unset ROOT
cleanup_stages
|