add build_dist

This commit is contained in:
parazyd 2016-09-30 10:50:15 +02:00
parent 26ff72bec2
commit f2bdce8156
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
3 changed files with 20 additions and 2 deletions

View File

@ -92,6 +92,7 @@ rm -f /thirdstage
rm -f /etc/ssh/*_key
rm -f /etc/ssh/*.pub
rm -f /root/.bash_history
rm -f /usr/bin/qemu-*
## our file for which we check the bootstrap is complete
echo "1" > .done
rm -f /cleanup

View File

@ -19,6 +19,23 @@
## helper functions that make your life easier
build_image_dist() {
fn build_image_dist
req=(arch size parted_boot parted_root parted_type)
req+=(workdir strapdir image_name)
ckreq || return 1
notice "building complete dist image"
act "$image_name"
bootstrap_complete_base || zerr
image_prepare_raw || zerr
image_partition_raw_${parted_type} || zerr
build_kernel_${arch} || zerr
rsync_to_raw_image || zerr
image_pack_dist || zerr
}
devprocsys() {
fn devprocsys "$@"
local watdo="$1"

View File

@ -81,8 +81,8 @@ image_partition_raw_gpt() {
sudo mkfs.ext4 -L rootfs $rootpart
}
image_package_dist() {
fn image_package_dist
image_pack_dist() {
fn image_pack_dist
req=(mappdevice loopdevice image_name strapdir workdir)
ckreq || return 1