@@ -176,6 +176,11 mount -t proc none $R/proc | |||||
176 | mount -t sysfs none $R/sys |
|
176 | mount -t sysfs none $R/sys | |
177 | mount --bind /dev/pts $R/dev/pts |
|
177 | mount --bind /dev/pts $R/dev/pts | |
178 |
|
178 | |||
|
179 | # Use proxy inside chroot | |||
|
180 | if [ -z "$APT_PROXY" ] ; then | |||
|
181 | echo "Acquire::http::Proxy \"$APT_PROXY\"" >> $R/etc/apt/apt.conf.d/10proxy | |||
|
182 | fi | |||
|
183 | ||||
179 | # Pin package flash-kernel to repositories.collabora.co.uk |
|
184 | # Pin package flash-kernel to repositories.collabora.co.uk | |
180 | cat <<EOM >$R/etc/apt/preferences.d/flash-kernel |
|
185 | cat <<EOM >$R/etc/apt/preferences.d/flash-kernel | |
181 | Package: flash-kernel |
|
186 | Package: flash-kernel | |
@@ -708,6 +713,7 rm -rf $R/tmp/* | |||||
708 | rm -f $R/var/lib/urandom/random-seed |
|
713 | rm -f $R/var/lib/urandom/random-seed | |
709 | [ -L $R/var/lib/dbus/machine-id ] || rm -f $R/var/lib/dbus/machine-id |
|
714 | [ -L $R/var/lib/dbus/machine-id ] || rm -f $R/var/lib/dbus/machine-id | |
710 | rm -f $R/etc/machine-id |
|
715 | rm -f $R/etc/machine-id | |
|
716 | rm -fr $R/etc/apt/apt.conf.d/10proxy | |||
711 |
|
717 | |||
712 | # Calculate size of the chroot directory |
|
718 | # Calculate size of the chroot directory | |
713 | CHROOT_SIZE=$(expr `du -s $R | awk '{ print $1 }'` / 1024) |
|
719 | CHROOT_SIZE=$(expr `du -s $R | awk '{ print $1 }'` / 1024) |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant