add _GENERATE_IMAGE

This commit is contained in:
Tobias Powalowski 2023-10-12 09:08:23 +02:00
parent 9089817e8f
commit 0622a98494

View file

@ -192,7 +192,7 @@ if [[ -n "${_GENERATE_IMAGE}" ]]; then
# check for permissions. if the image doesn't already exist, # check for permissions. if the image doesn't already exist,
# then check the directory # then check the directory
if [[ ( -e ${_GENERATE_IMAGE} && ! -w ${_GENERATE_IMAGE} ) || if [[ ( -e ${_GENERATE_IMAGE} && ! -w ${_GENERATE_IMAGE} ) ||
( ! -d ${${_GENERATE_IMAGE%/*} || ! -w ${${_GENERATE_IMAGE%/*} ) ]]; then ( ! -d ${_GENERATE_IMAGE%/*} || ! -w ${_GENERATE_IMAGE%/*} ) ]]; then
die "Unable to write to '%s'" "${_GENERATE_IMAGE}" die "Unable to write to '%s'" "${_GENERATE_IMAGE}"
fi fi
msg "Starting build: '%s'" "${_KERNELVERSION}" msg "Starting build: '%s'" "${_KERNELVERSION}"