diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-12 11:35:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-12 11:35:24 -0300 |
commit | e08b83b1b45dceda375df1c37be1bfe046347f58 (patch) | |
tree | 5fabd26a87abc5334c1099657bee04757cf38efd | |
parent | 1bbc728c51e9aed4d5f50412d16ff343753ad42a (diff) | |
download | hydra-e08b83b1b45dceda375df1c37be1bfe046347f58.tar.gz hydra-e08b83b1b45dceda375df1c37be1bfe046347f58.tar.bz2 |
More fixes at provision-chroot
-rwxr-xr-x | share/hydractl/provision-chroot | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/hydractl/provision-chroot b/share/hydractl/provision-chroot index 06720c7..c989f63 100755 --- a/share/hydractl/provision-chroot +++ b/share/hydractl/provision-chroot @@ -50,10 +50,14 @@ hydra_sudo_run mkdir -p /var/chroot hydra_sudo_run debootstrap --variant=minbase --arch $arch $version $WORK/ $mirror # Arch specific procedures -if [ "$arch" != "armel" ] && [ "$arch" != "armhf" ]; then +if [ "$arch" == "armel" ] || [ "$arch" == "armhf" ]; then + if [ ! -f '/usr/bin/qemu-arm-static' ]; then + hydra_sudo run apt-get install qemu-user-static + fi + hydra_sudo_run cp /usr/bin/qemu-arm-static $WORK/usr/bin/ $CHROOT /debootstrap/debootstrap --second-stage fi -echo "$hostname.$domain" | hydra_sudo_run tee /var/chroot/squeeze/etc/hostname > /dev/null +echo "$hostname.$domain" | hydra_sudo_run tee $WORK/etc/hostname > /dev/null $CHROOT apt-get install locales |