mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-06 21:37:51 +00:00
fix: remove image-info.json from base image if it exists (#162)
* fix: remove image-info.json from base image if it exists This just makes it so if the user forgets to run the signing script and somehow installs `ublue-update`, `ublue-update` won't try to rebase them to the base image they chose * docs: clearer comment for image-info remove line --------- Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
This commit is contained in:
8
build.sh
8
build.sh
@@ -62,4 +62,12 @@ OS_VERSION="$(grep -Po '(?<=VERSION_ID=)\d+' /usr/lib/os-release)"
|
||||
# Welcome.
|
||||
echo "Building $IMAGE_NAME from $BASE_IMAGE:$OS_VERSION."
|
||||
|
||||
# Remove old image-info.json from main image
|
||||
# (this file is added back by signing.sh, but shouldn't exist
|
||||
# with wrong details in an unsigned image)
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
if [ -f "$IMAGE_INFO" ]; then
|
||||
rm -v "$IMAGE_INFO"
|
||||
fi
|
||||
|
||||
run_modules "$RECIPE_FILE"
|
||||
|
||||
Reference in New Issue
Block a user