Skip to content

Commit

Permalink
ERL-467: nemos-images-reference-*: config.sh: remove checkbox snap de…
Browse files Browse the repository at this point in the history
…pendency

`checkbox` snap has launchers built-in but the one we use are in
`checkbox-erlangen-classic` which has launchers and providers (in checkbox
term, the jobs and testplans), but doesn't have checkbox-runtime so we still
depend on `checkbox22` to provide the service and also the generic providers.

Signed-off-by: Alexandre Esse <alexandre.esse@canonical.com>
  • Loading branch information
ahresse committed Dec 14, 2023
1 parent 10649f8 commit b1052ee
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 19 deletions.
6 changes: 3 additions & 3 deletions nemos-images-reference-lunar/qemu-amd64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for profile in ${kiwi_profiles//,/ }; do
# This requires network access to the Snap Store in Kiwi.
mkdir -p /var/lib/snapd/seed
echo "snaps": > /var/lib/snapd/seed/seed.yaml
for snap in snapd checkbox22 checkbox checkbox-erlangen-classic core22; do
for snap in snapd checkbox22 checkbox-erlangen-classic core22; do
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
Expand All @@ -67,8 +67,8 @@ for profile in ${kiwi_profiles//,/ }; do
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
# checkbox-erlangen-classic snap requires classic confinement mode
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
EOF
Expand Down
6 changes: 3 additions & 3 deletions nemos-images-reference-lunar/qemu-arm64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for profile in ${kiwi_profiles//,/ }; do
# This requires network access to the Snap Store in Kiwi.
mkdir -p /var/lib/snapd/seed
echo "snaps": > /var/lib/snapd/seed/seed.yaml
for snap in snapd checkbox22 checkbox checkbox-erlangen-classic core22; do
for snap in snapd checkbox22 checkbox-erlangen-classic core22; do
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
Expand All @@ -67,8 +67,8 @@ for profile in ${kiwi_profiles//,/ }; do
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
# checkbox-erlangen-classic snap requires classic confinement mode
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
EOF
Expand Down
6 changes: 3 additions & 3 deletions nemos-images-reference-lunar/s32g274ardb2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for profile in ${kiwi_profiles//,/ }; do
# This requires network access to the Snap Store in Kiwi.
mkdir -p /var/lib/snapd/seed
echo "snaps": > /var/lib/snapd/seed/seed.yaml
for snap in snapd checkbox22 checkbox checkbox-erlangen-classic core22; do
for snap in snapd checkbox22 checkbox-erlangen-classic core22; do
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
Expand All @@ -67,8 +67,8 @@ for profile in ${kiwi_profiles//,/ }; do
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
# checkbox-erlangen-classic snap requires classic confinement mode
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
EOF
Expand Down
6 changes: 3 additions & 3 deletions nemos-images-reference-mantic/qemu-amd64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for profile in ${kiwi_profiles//,/ }; do
# This requires network access to the Snap Store in Kiwi.
mkdir -p /var/lib/snapd/seed
echo "snaps": > /var/lib/snapd/seed/seed.yaml
for snap in snapd checkbox22 checkbox checkbox-erlangen-classic core22; do
for snap in snapd checkbox22 checkbox-erlangen-classic core22; do
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
Expand All @@ -67,8 +67,8 @@ for profile in ${kiwi_profiles//,/ }; do
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
# checkbox-erlangen-classic snap requires classic confinement mode
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
EOF
Expand Down
6 changes: 3 additions & 3 deletions nemos-images-reference-mantic/qemu-arm64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for profile in ${kiwi_profiles//,/ }; do
# This requires network access to the Snap Store in Kiwi.
mkdir -p /var/lib/snapd/seed
echo "snaps": > /var/lib/snapd/seed/seed.yaml
for snap in snapd checkbox22 checkbox checkbox-erlangen-classic core22; do
for snap in snapd checkbox22 checkbox-erlangen-classic core22; do
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
Expand All @@ -67,8 +67,8 @@ for profile in ${kiwi_profiles//,/ }; do
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
# checkbox-erlangen-classic snap requires classic confinement mode
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
EOF
Expand Down
6 changes: 3 additions & 3 deletions nemos-images-reference-mantic/s32g274ardb2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for profile in ${kiwi_profiles//,/ }; do
# This requires network access to the Snap Store in Kiwi.
mkdir -p /var/lib/snapd/seed
echo "snaps": > /var/lib/snapd/seed/seed.yaml
for snap in snapd checkbox22 checkbox checkbox-erlangen-classic core22; do
for snap in snapd checkbox22 checkbox-erlangen-classic core22; do
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
Expand All @@ -67,8 +67,8 @@ for profile in ${kiwi_profiles//,/ }; do
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
# checkbox-erlangen-classic snap requires classic confinement mode
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
EOF
Expand Down
1 change: 0 additions & 1 deletion tests/spread/snaps/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ execute: |
for snap in \
snapd \
checkbox22 \
checkbox \
checkbox-erlangen-classic \
core22; do
snap list "${snap}"
Expand Down

0 comments on commit b1052ee

Please sign in to comment.