Where am I in chroot?
This commit is contained in:
parent
667b6b1df7
commit
64c5c17ed6
@ -5,8 +5,8 @@ stages:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
cache: {}
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y wget sudo
|
- apt-get update && apt-get install -y wget sudo
|
||||||
- MOUNTBIN=`which mount` && rm -f $MOUNTBIN && ln -sf `which echo` $MOUNTBIN
|
- 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
|
- FORCE_EXEC=1 bash install-and-chroot.sh
|
||||||
|
@ -39,7 +39,7 @@ fi
|
|||||||
sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf"
|
sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf"
|
||||||
|
|
||||||
# Launch chroot
|
# Launch chroot
|
||||||
sh $DIR/enter-chroot ./build || exit 1
|
cp build $DIR/build && sh $DIR/enter-chroot /build || pwd
|
||||||
|
|
||||||
# Insert pkg++ configuration in chroot
|
# Insert pkg++ configuration in chroot
|
||||||
sudo mkdir -p "$DIR/opt/pkgxx/dev" && \
|
sudo mkdir -p "$DIR/opt/pkgxx/dev" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user