oooo annoying, scroot refuses to go if done in wrong directory
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 14 Sep 2021 16:02:04 +0000 (17:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 14 Sep 2021 16:02:04 +0000 (17:02 +0100)
mk-deb-chroot

index 526c26c42f455df805033d385dd56ec4426f61c5..1c67729b66736ed8105f688c9894aa096a2ee780 100755 (executable)
@@ -111,19 +111,19 @@ fi
 
 # Install apt dependencies in the chroot
 cd /tmp
-schroot -c $chrootdir /bin/bash << EOF
+schroot -c $chrootdir /bin/bash --directory=/tmp << EOF
 echo Installing necessary apt dependencies in the chroot
 apt-get update -y
 apt-get upgrade -y
 apt-get install -y automake binutils-dev build-essential \
-ccache cmake gcc git \
-libtool \
-sysvinit-core \
-sysvinit-utils \
-sudo \
-python2.7 \
-python3 python3-pip \
-python3-setuptools python3-dev
+        ccache cmake gcc git \
+        libtool \
+        sysvinit-core \
+        sysvinit-utils \
+        sudo \
+        python2.7 \
+        python3 python3-pip \
+        python3-setuptools python3-dev
 
 # yeah systemd in a chroot? not very funny joke.
 apt-get remove -y systemd