blob: fd0948a863375b5a773cb623e8c4563a69e710c4 (
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
29
30
31
32
33
34
35
|
#!/bin/bash
current_script="$(basename "$0"|sed 's/^lb_//')"
if [ "$current_script" = "chroot" ]; then
# Including common functions
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" ||
# Reading configuration files
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
echo "HOOK: prepare chroot sources.list"
if [ "${_KVERBOSE}" = "true" ]; then
echo "DEBUG: LB_APT_HTTP_PROXY ${LB_APT_HTTP_PROXY}"
echo "DEBUG: LB_APT_FTP_PROXY ${LB_APT_FTP_PROXY}"
echo "DEBUG: DEBOOTSTRAP_OPTIONS ${DEBOOTSTRAP_OPTIONS}"
echo "DEBUG: LB_PARENT_DISTRIBUTION ${LB_PARENT_DISTRIBUTION}"
echo "DEBUG: LB_PARENT_MIRROR_BOOTSTRAP ${LB_PARENT_MIRROR_BOOTSTRAP}"
echo "DEBUG: LB_DISTRIBUTION ${LB_DISTRIBUTION}"
echo "DEBUG: LB_PARENT_MIRROR_CHROOT ${LB_PARENT_MIRROR_CHROOT}"
echo "DEBUG: LB_PARENT_MIRROR ${LB_PARENT_MIRROR}"
echo "DEBUG: LB_MIRROR_CHROOT ${LB_MIRROR_CHROOT}"
echo "DEBUG: LB_PARENT_MIRROR_BINARY ${LB_PARENT_MIRROR_BINARY}"
echo "DEBUG: LB_ARCHIVES ${LB_ARCHIVES}"
fi
if [ -e config/chroot_local-includes/etc/apt/sources.list ]; then
echo "sources.list found in config/chroot_local-includes/"
sed -i -e "s#@MIRRORDUMMY@#${LB_MIRROR_CHROOT}#"g config/chroot_local-includes/etc/apt/sources.list
cat config/chroot_local-includes/etc/apt/sources.list
fi
fi
|