From 975cb056121c3d60c08ef2cca8d4194c3718cb81 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Tue, 9 Nov 2021 18:29:25 -0300 Subject: [PATCH] add dependency --- Dockerfile | 2 +- build.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9f96ac..bd62ed4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get -y update && \ git vim parted \ quilt coreutils qemu-user-static debootstrap zerofree zip dosfstools \ libarchive-tools libcap2-bin rsync grep udev xz-utils curl xxd file kmod bc\ - binfmt-support ca-certificates qemu-utils kpartx util-linux \ + binfmt-support ca-certificates qemu-utils kpartx util-linux fdisk \ && rm -rf /var/lib/apt/lists/* COPY . /pi-gen/ diff --git a/build.sh b/build.sh index aaf34aa..d56583e 100755 --- a/build.sh +++ b/build.sh @@ -111,7 +111,7 @@ run_stage(){ STAGE_WORK_DIR="${WORK_DIR}/${STAGE}" ROOTFS_DIR="${STAGE_WORK_DIR}"/rootfs - if [ "${USE_QCOW2}" = "1" ]; then + if [ "${USE_QCOW2}" = "1" ]; then if [ ! -f SKIP ]; then load_qimage fi @@ -121,7 +121,7 @@ run_stage(){ unmount "${WORK_DIR}/${STAGE}" fi fi - + if [ ! -f SKIP_IMAGES ]; then if [ -f "${STAGE_DIR}/EXPORT_IMAGE" ]; then EXPORT_DIRS="${EXPORT_DIRS} ${STAGE_DIR}" @@ -265,7 +265,7 @@ source "${SCRIPT_DIR}/common" source "${SCRIPT_DIR}/dependencies_check" export NO_PRERUN_QCOW2="${NO_PRERUN_QCOW2:-1}" -export USE_QCOW2="${USE_QCOW2:-1}" +export USE_QCOW2="${USE_QCOW2:-0}" export BASE_QCOW2_SIZE=${BASE_QCOW2_SIZE:-12G} source "${SCRIPT_DIR}/qcow2_handling" if [ "${USE_QCOW2}" = "1" ]; then