apply fixes for a valid build

This commit is contained in:
parazyd 2017-02-14 18:46:21 +01:00
parent 056c2d943f
commit a4cf35c5b6
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
3 changed files with 4 additions and 4 deletions

View File

@ -188,5 +188,5 @@ EOF
[[ -n "$inittab" ]] && { print $inittab | sudo tee -a $strapdir/etc/inittab >/dev/null }
for i in $custmodules; do
print $i | sudo tee -a $strapdir/etc/modules >/dev/null
done
done || return 0
}

View File

@ -154,14 +154,14 @@ image_raw_umount() {
image_raw_as_strapdir() {
fn image_raw_as_strapdir
req=(workdir strapdir)
req=(workdir strapdir size)
ckreq || return 1
pushd "$workdir"
notice "creating raw image of $size MB"
sudo -E rm -f base.raw
sudo -E qemu-img create -f raw base.raw
sudo -E qemu-img create -f raw base.raw ${size}M
notice "partitioning"
sudo -E parted base.raw mktable msdos
sudo -E parted base.raw mkpart primary '0%' '100%'

View File

@ -151,7 +151,7 @@ EOF
}
EOF
notice "actually packaging..."
vagrant package --base "$vmname" --outbut devuanbox.box --include metadata.json --vagrantfile Vagrantfile || zerr
vagrant package --base "$vmname" --output devuanbox.box --include metadata.json --vagrantfile Vagrantfile || zerr
popd
}