mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 18:45:53 +00:00
issue #3: Validate the image built
This commit is contained in:
parent
66198c699d
commit
fdebd2aa32
1 changed files with 6 additions and 0 deletions
|
|
@ -248,6 +248,12 @@ function build_image_juju(){
|
|||
echo 'export PATH=$PATH:/opt/juju/bin' > ${maindir}/root/etc/profile.d/juju.sh
|
||||
chmod +x ${maindir}/root/etc/profile.d/juju.sh
|
||||
|
||||
info "Validating JuJu image..."
|
||||
arch-chroot ${maindir}/root pacman -Qi pacman &> /dev/null
|
||||
arch-chroot ${maindir}/root yaourt -V &> /dev/null
|
||||
arch-chroot ${maindir}/root proot --help &> /dev/null
|
||||
arch-chroot ${maindir}/root arch-chroot --help &> /dev/null
|
||||
|
||||
builtin cd ${ORIGIN_WD}
|
||||
local imagefile="juju-${ARCH}.tar.gz"
|
||||
info "Compressing image to ${imagefile}..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue