Skip to content

Commit

Permalink
build and serve packages for both Ubuntu Focal and Noble
Browse files Browse the repository at this point in the history
  • Loading branch information
cfm committed Feb 7, 2025
1 parent 06eef64 commit 27bcac7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions user_data.sh.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,20 @@ cd "$WORKDIR" && git checkout ${ref}
apt-get install -y enchant-2
apt-get install -y rustc

export UBUNTU_VERSION=focal
PKG_SRC_PATH="$${WORKDIR}/build/$${UBUNTU_VERSION}"
PKG_DST_PATH="$${WORKDIR}/build/dists/$${UBUNTU_VERSION}/main/binary-amd64"
cd "$WORKDIR" && make build-debs-notest && make build-debs-ossec-notest
mkdir -p "$PKG_DST_PATH"
apt-ftparchive packages "$PKG_SRC_PATH" > "$${PKG_DST_PATH}/Packages"

export UBUNTU_VERSION=noble
cd "$WORKDIR" && make build-debs-notest && make build-debs-ossec-notest
PKG_SRC_PATH="$${WORKDIR}/build/$${UBUNTU_VERSION}"
PKG_DST_PATH="$${WORKDIR}/build/dists/$${UBUNTU_VERSION}/main/binary-amd64"
cd "$WORKDIR" && make build-debs-notest && make build-debs-ossec-notest
mkdir -p "$PKG_DST_PATH"
apt-ftparchive packages "$PKG_SRC_PATH" > "$${PKG_DST_PATH}/Packages"

# Under the hood, the "libvirt-staging-focal" Molecule scenario will create
# the "libvirt-vagrant" network to which we'll attach our Tails domain.
Expand All @@ -92,3 +105,5 @@ virt-install \
--noautoconsole \
--osinfo debian11 \
--vcpus 4

cd "$${WORKDIR}/build" && python3 -m http.server &

0 comments on commit 27bcac7

Please sign in to comment.