Skip to content

Commit

Permalink
scripts/build-distribution-suite: clean up before creating disk images
Browse files Browse the repository at this point in the history
We don't have unlimited space on the build vm.. these directories might
take about 70 gig for the makerstick, so tidy a bit. Otherwise:

> grub-install: error: cannot copy
> `/usr/share/locale/ca/LC_MESSAGES/grub.mo' to
> `/tmp/stick-install.OMmZ/efiboot/boot/grub/locale/ca.mo': Input/output
> error.
> [ 🛑 ] Sorry, something went wrong.
> [ 🛑 ] Problem occurred in install/hooks/20-install_grub.sh
  • Loading branch information
eMPee584 committed Mar 18, 2024
1 parent 7c2f516 commit 472d27f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build-distribution-suite
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ for VARIANT in ${VARIANTS}
do
# build variant iso:
print_info "${COLOR_YELLOW}building ${VARIANT}${COLOR_OFF}"
scripts/build-live-iso "${VARIANT}"
scripts/build-live-iso "${VARIANT}" \
&& print_info "${COLOR_YELLOW}Built ok, removing build cruft${COLOR_OFF}" \
&& du -sh build/chroot build/binary \
&& rm -r build/chroot build/binary

# build distribution image:
IMAGE_NAME=$(bash -c 'source scripts/functions.bash && cd build && get_image_name')
Expand Down

0 comments on commit 472d27f

Please sign in to comment.