create-alpine-disk-image icon indicating copy to clipboard operation
create-alpine-disk-image copied to clipboard

Errors running on ubuntu - `temp_ca_dir_created: parameter not set`

Open ShaneMcC opened this issue 1 year ago • 2 comments

When running on ubuntu using /bin/sh (which defaults to dash) the script generates the following errors:

Install base Alpine (plus bootloader packages) for x86_64 arch inside chroot
/tmp/alpine-build/create.sh: 464: temp_ca_dir_created: parameter not set


AN ERROR OCCURRED, cleaning up before aborting!


/tmp/alpine-build/create.sh: 214: working_dir: parameter not set
There was an error building.

Switching the shebang out to use /bin/bash instead gives different errors:

/tmp/alpine-build/create.sh: line 464: temp_ca_dir_created: unbound variable


AN ERROR OCCURRED, cleaning up before aborting!


/tmp/alpine-build/create.sh: line 214: working_dir: unbound variable
There was an error building.

This is partly related to the previous failed run - but the unbound variables are still a problem regardless.

Removing /etc/apk allows getting further.

ShaneMcC avatar Jul 22 '23 15:07 ShaneMcC

Same here on Debian12

trixam avatar Jul 25 '23 09:07 trixam

I merged a PR recently and retested then with Debian (dash) and things work fine.

I expect that also Ubuntu now works correctly - I will retest shortly to verify.

dermotbradley avatar Aug 29 '23 02:08 dermotbradley