Save image to temperary file instead of to stdout.
This commit is contained in:
parent
4d900804ba
commit
f4dfa9b1fa
@ -31,6 +31,9 @@ cleanup() {
|
|||||||
partx -d "${loopdev}"
|
partx -d "${loopdev}"
|
||||||
losetup --detach "${loopdev}"
|
losetup --detach "${loopdev}"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${imageFileName}" ]]; then
|
||||||
|
rm "${imageFileName}"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +142,9 @@ mkdir /mnt/boot
|
|||||||
mount "${loopdev}p1" /mnt/boot
|
mount "${loopdev}p1" /mnt/boot
|
||||||
# Things are mounted now, so set mounted to 0 (bash true)
|
# Things are mounted now, so set mounted to 0 (bash true)
|
||||||
mounted=0
|
mounted=0
|
||||||
wget "${url[$imageVersion]}" -O- | bsdtar -xpf - -C /mnt
|
imageFileName=$(mktemp)
|
||||||
|
wget "${url[$imageVersion]}" -O "${imageFileName}"
|
||||||
|
bsdtar -xpf "${imageFileName}" -C /mnt
|
||||||
arch-chroot /mnt << EOF
|
arch-chroot /mnt << EOF
|
||||||
# set up pacman
|
# set up pacman
|
||||||
pacman-key --init
|
pacman-key --init
|
||||||
|
Loading…
Reference in New Issue
Block a user