mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Chizi123
2019-07-09 90f1f8b9f92fb471a1f53d4e3ec1608414851ade
Binding chroot to itself
3 files modified
5 ■■■■ changed files
add_package.sh 1 ●●●● patch | view | raw | blame | history
build_packages.sh 3 ●●●● patch | view | raw | blame | history
enter_chroot.sh 1 ●●●● patch | view | raw | blame | history
add_package.sh
@@ -1,4 +1,5 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot 
mount --bind $CHDIR $CHDIR
$CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo; git clone $1"
build_packages.sh
@@ -1,4 +1,5 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot
CHDIR=$(dirname "$(realpath $0)")/chroot
mount --bind $CHDIR $CHDIR
$CHDIR/bin/arch-chroot $CHDIR su joel -c "/build/repo/build.sh"
enter_chroot.sh
@@ -1,4 +1,5 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot 
mount --bind $CHDIR $CHDIR
$CHDIR/bin/arch-chroot $CHDIR su joel