Browse Source

post-custom-skeleton: update fetch address

Signed-off-by: Chunrong Guo <guochunrong@phytium.com.cn>
pull/6/MERGE
Chunrong Guo 2 years ago
parent
commit
d1fb43a694
  1. 2
      board/phytium/common/post-custom-skeleton-debian-base-11.sh
  2. 4
      board/phytium/common/post-custom-skeleton-ubuntu-base-20.04.sh

2
board/phytium/common/post-custom-skeleton-debian-base-11.sh

@ -79,7 +79,7 @@ do_distrorfs_first_stage() {
if [ ! -d $RFSDIR/debootstrap ]; then if [ ! -d $RFSDIR/debootstrap ]; then
echo "testdeboot" echo "testdeboot"
export LANG=zh_CN.UTF-8 export LANG=zh_CN.UTF-8
sudo debootstrap --arch=$1 --foreign bullseye $RFSDIR http://mirrors.163.com/debian/ sudo debootstrap --arch=$1 --foreign bullseye $RFSDIR https://mirrors.tuna.tsinghua.edu.cn/debian/
[ $1 != amd64 -a ! -f $RFSDIR/usr/bin/qemu-${tgtarch}-static ] && sudo cp $(which qemu-${tgtarch}-static) $RFSDIR/usr/bin [ $1 != amd64 -a ! -f $RFSDIR/usr/bin/qemu-${tgtarch}-static ] && sudo cp $(which qemu-${tgtarch}-static) $RFSDIR/usr/bin
echo "installing for second-stage ..." echo "installing for second-stage ..."

4
board/phytium/common/post-custom-skeleton-ubuntu-base-20.04.sh

@ -78,12 +78,12 @@ do_distrorfs_first_stage() {
if [ ! -d $RFSDIR/debootstrap ]; then if [ ! -d $RFSDIR/debootstrap ]; then
echo "testdeboot" echo "testdeboot"
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
sudo debootstrap --arch=$1 --foreign focal $RFSDIR sudo debootstrap --arch=$1 --foreign focal $RFSDIR https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports
[ $1 != amd64 -a ! -f $RFSDIR/usr/bin/qemu-${tgtarch}-static ] && sudo cp $(which qemu-${tgtarch}-static) $RFSDIR/usr/bin [ $1 != amd64 -a ! -f $RFSDIR/usr/bin/qemu-${tgtarch}-static ] && sudo cp $(which qemu-${tgtarch}-static) $RFSDIR/usr/bin
echo "installing for second-stage ..." echo "installing for second-stage ..."
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C \ DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C \
sudo chroot $RFSDIR /debootstrap/debootstrap --second-stage sudo chroot $RFSDIR /debootstrap/debootstrap --second-stage
if [ "x$?" != "x0" ]; then if [ "x$?" != "x0" ]; then
do_recover_from_error "debootstrap failed in second-stage" do_recover_from_error "debootstrap failed in second-stage"
exit 1 exit 1

Loading…
Cancel
Save