Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gigabyte-ampere-cuttlefish-installer/preseed/preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ d-i partman-partitioning/default_label string gpt
# (default: false).
d-i apt-setup/cdrom/set-first boolean false
# Backport selection
# d-i apt-setup/services-select multiselect backports
d-i apt-setup/services-select multiselect backports

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By doing so, it becomes much harder to predict which kernel version we'll end up with, given how frequently backports are updated. For example, we might make an unrelated change to the installer, but simply rebuilding it later could trigger an unexpected major kernel upgrade. In fact, I booted a QEMU VM using this installer and it actually installed kernel 7.0.13 (since 11 Jul 2026), rather than 6.18 as expected.

I'm still figuring out what a good approach would look like, but in the meantime, do you think this is a real concern?

# You can choose to install non-free firmware.
d-i apt-setup/non-free-firmware boolean true
# You can choose to install non-free and contrib software.
Expand Down
18 changes: 16 additions & 2 deletions gigabyte-ampere-cuttlefish-installer/utils/download-ci-cf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,23 @@ set -o errexit

URL=https://ci.android.com/builds/latest/branches/aosp-android-latest-release/targets/aosp_cf_arm64_only_phone-userdebug/view/BUILD_INFO
RURL=$(curl -Ls -o /dev/null -w %{url_effective} ${URL})
echo $RURL
echo "RURL = ${RURL}"

FILENAME=$(wget -nv -O - ${RURL%/view/BUILD_INFO}/ | grep aosp_cf_arm64_only_phone-img- | sed 's/.*\(aosp_cf_arm64_only_phone-img-[0-9]*[.]zip\).*/\1/g')
BUILD_ID=$(echo "${RURL}" | sed -n 's/.*\/builds\/submitted\/\([^\/]*\)\/.*/\1/p')
echo "BUILD_ID = ${BUILD_ID}"

if [ x"${BUILD_ID}" = x"" ]; then
echo "Error: BUILD_ID empty."
exit 1
fi

FILENAME="aosp_cf_arm64_only_phone-img-${BUILD_ID}.zip"
echo "FILENAME = ${FILENAME}"

if [ x"${FILENAME}" = x"" ]; then
echo "Error: FILENAME empty."
exit 1
fi

wget -nv -c ${RURL%/view/BUILD_INFO}/raw/${FILENAME}
wget -nv -c ${RURL%/view/BUILD_INFO}/raw/cvd-host_package.tar.gz
Expand Down
Loading