Remove tmpdir

This commit is contained in:
Nico Schottelius 2021-05-29 20:10:46 +02:00
parent 525194947b
commit 919a725b04

View file

@ -25,8 +25,8 @@ rootfs_tmpdir=$(mktemp -d)
rootfs_url="http://dl-cdn.alpinelinux.org/alpine/v$MAJOR_VERSION/releases/x86_64/$IMAGE"
run_root () {
sudo chroot $rootfs_tmpdir /usr/bin/env \
PATH=/bin:/sbin \
sudo chroot $rootfs_tmpdir
PATH=/sbin:/bin:/usr/sbin:/usr/bin \
/bin/sh -c "$*"
}
@ -100,6 +100,7 @@ done
sudo umount $rootfs_tmpdir
sync
rmdir ${rootfs_tmpdir}
echo "${DISK} has been setup with Alpine Linux"