Browse Source

Where am I in chroot?

master
Olivier DOSSMANN 4 years ago
parent
commit
64c5c17ed6
  1. 2
      .gitlab-ci.yml
  2. 2
      install-and-chroot.sh

2
.gitlab-ci.yml

@ -5,8 +5,8 @@ stages:
build:
stage: build
cache: {}
script:
- apt-get update && apt-get install -y wget sudo
- MOUNTBIN=`which mount` && rm -f $MOUNTBIN && ln -sf `which echo` $MOUNTBIN
- mkdir "/alpine$(pwd)" && cp build "/alpine$(pwd)"
- FORCE_EXEC=1 bash install-and-chroot.sh

2
install-and-chroot.sh

@ -39,7 +39,7 @@ fi
sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf"
# Launch chroot
sh $DIR/enter-chroot ./build || exit 1
cp build $DIR/build && sh $DIR/enter-chroot /build || pwd
# Insert pkg++ configuration in chroot
sudo mkdir -p "$DIR/opt/pkgxx/dev" && \

Loading…
Cancel
Save