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"
|
rootfs_url="http://dl-cdn.alpinelinux.org/alpine/v$MAJOR_VERSION/releases/x86_64/$IMAGE"
|
||||||
|
|
||||||
run_root () {
|
run_root () {
|
||||||
sudo chroot $rootfs_tmpdir /usr/bin/env \
|
sudo chroot $rootfs_tmpdir
|
||||||
PATH=/bin:/sbin \
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin \
|
||||||
/bin/sh -c "$*"
|
/bin/sh -c "$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,6 +100,7 @@ done
|
||||||
sudo umount $rootfs_tmpdir
|
sudo umount $rootfs_tmpdir
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
rmdir ${rootfs_tmpdir}
|
||||||
|
|
||||||
echo "${DISK} has been setup with Alpine Linux"
|
echo "${DISK} has been setup with Alpine Linux"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue