From a2b09fd6152295894cf9ee495387f5e6ab638570 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Thu, 22 Aug 2019 23:30:07 +0000 Subject: [PATCH] Fixed type to stay within chroot and not affect main system --- create_chroot.sh | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/create_chroot.sh b/create_chroot.sh index 78e9140..944b641 100755 --- a/create_chroot.sh +++ b/create_chroot.sh @@ -26,10 +26,10 @@ sed -i 's/^#Server/Server/' etc/pacman.d/mirrorlist mkdir home/$USER echo $USER:x:1000:1000:$USER:/home/$USER:/bin/bash >> etc/passwd -echo $USER::14871:::::: >> /etc/shadow -mkdir build -mkdir build/repo -echo $LOCALE >> /etc/locale.gen +echo $USER::14871:::::: >> etc/shadow +mkdir -p build/repo +ln ../build.sh build/repo/build.sh +echo $LOCALE >> etc/locale.gen mount --bind $CHDIR $CHDIR bin/arch-chroot . bash -c "locale-gen; pacman-key --init; @@ -38,8 +38,7 @@ chown $USER:users /home/$USER; su $USER -c \"git config --global credential.helper store; git config --global user.name $GIT_USER; - git config --global user.email $GIT_EMAIL\"; - ln build.sh chroot/build/repo/build.sh" + git config --global user.email $GIT_EMAIL\";" echo "$USER ALL=(ALL) NOPASSWD:ALL" >> etc/sudoers echo "Please set up the remote git repo for hosting" echo "Navagate to /build/repo to init the repository" -- Gitblit v1.9.3