initial asahi-cosmic setup
This commit is contained in:
14
builder.sh
14
builder.sh
@@ -43,14 +43,26 @@ echo "${buildid}" > .buildid
|
||||
|
||||
echo "Composing ${VERSION}.${buildid} ..."
|
||||
|
||||
# shared repos
|
||||
# repos import
|
||||
cp images/shared/*.repo "${IMAGE_DIR}"
|
||||
cp "${IMAGE_DIR}"/repos/*.repo "${IMAGE_DIR}"
|
||||
|
||||
# Ensure manifest has correct ref and releasever
|
||||
sed -i '/^ref:/d' "$MANIFEST"
|
||||
sed -i '/^releasever:/d' "$MANIFEST"
|
||||
sed -i "1i releasever: ${VERSION}" "$MANIFEST"
|
||||
sed -i "1i ref: ${REF}" "$MANIFEST"
|
||||
|
||||
#Run a optional per image script to do image specific things
|
||||
POSTPROCESS="${IMAGE_DIR}/postprocess.sh"
|
||||
if [[ -x "${POSTPROCESS}" ]]; then
|
||||
echo "Running postprocess script: ${POSTPROCESS}"
|
||||
"${POSTPROCESS}"
|
||||
else
|
||||
echo "No postprocess.sh found in ${IMAGE_DIR}, skipping."
|
||||
fi
|
||||
|
||||
|
||||
# --- COMPOSE IMAGE ---
|
||||
ARGS=(
|
||||
"--cachedir=cache"
|
||||
|
||||
Reference in New Issue
Block a user