Remove tmpdir
This commit is contained in:
parent
525194947b
commit
919a725b04
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue