Skip to content

Commit

Permalink
ERL-467: nemos-images-reference-*: *: use latest/edge for checkbox
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac True <[email protected]>
  • Loading branch information
IsaacJT committed Nov 23, 2023
1 parent 5d8c08b commit 211d75b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 18 deletions.
12 changes: 9 additions & 3 deletions nemos-images-reference-lunar/qemu-amd64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@ for profile in ${kiwi_profiles//,/ }; do
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
snap download $snap
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
else
CHANNEL="latest/stable"
fi
snap download "${snap}" --channel "${CHANNEL}"
# Add this new snap to the list of seeded snaps
cat >> /var/lib/snapd/seed/seed.yaml << EOF
- name: ${snap}
channel: latest/stable
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snap requires classic confinement mode
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
Expand Down
12 changes: 9 additions & 3 deletions nemos-images-reference-lunar/qemu-arm64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@ for profile in ${kiwi_profiles//,/ }; do
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
snap download $snap
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
else
CHANNEL="latest/stable"
fi
snap download "${snap}" --channel "${CHANNEL}"
# Add this new snap to the list of seeded snaps
cat >> /var/lib/snapd/seed/seed.yaml << EOF
- name: ${snap}
channel: latest/stable
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snap requires classic confinement mode
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
Expand Down
12 changes: 9 additions & 3 deletions nemos-images-reference-lunar/s32g274ardb2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,20 @@ for profile in ${kiwi_profiles//,/ }; do
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
snap download $snap
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
else
CHANNEL="latest/stable"
fi
snap download "${snap}" --channel "${CHANNEL}"
# Add this new snap to the list of seeded snaps
cat >> /var/lib/snapd/seed/seed.yaml << EOF
- name: ${snap}
channel: latest/stable
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snap requires classic confinement mode
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
Expand Down
12 changes: 9 additions & 3 deletions nemos-images-reference-mantic/qemu-amd64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@ for profile in ${kiwi_profiles//,/ }; do
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
snap download $snap
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
else
CHANNEL="latest/stable"
fi
snap download "${snap}" --channel "${CHANNEL}"
# Add this new snap to the list of seeded snaps
cat >> /var/lib/snapd/seed/seed.yaml << EOF
- name: ${snap}
channel: latest/stable
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snap requires classic confinement mode
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
Expand Down
12 changes: 9 additions & 3 deletions nemos-images-reference-mantic/qemu-arm64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@ for profile in ${kiwi_profiles//,/ }; do
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
snap download $snap
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
else
CHANNEL="latest/stable"
fi
snap download "${snap}" --channel "${CHANNEL}"
# Add this new snap to the list of seeded snaps
cat >> /var/lib/snapd/seed/seed.yaml << EOF
- name: ${snap}
channel: latest/stable
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snap requires classic confinement mode
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
Expand Down
12 changes: 9 additions & 3 deletions nemos-images-reference-mantic/s32g274ardb2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,20 @@ for profile in ${kiwi_profiles//,/ }; do
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
snap download $snap
# Always download the very latest checkbox-erlangen-classic snap
if [ "${snap}" = "checkbox-erlangen-classic" ]; then
CHANNEL="latest/edge"
else
CHANNEL="latest/stable"
fi
snap download "${snap}" --channel "${CHANNEL}"
# Add this new snap to the list of seeded snaps
cat >> /var/lib/snapd/seed/seed.yaml << EOF
- name: ${snap}
channel: latest/stable
channel: ${CHANNEL}
file: $(ls ${snap}_*.snap)
EOF
# Checkbox snap requires classic confinement mode
# Checkbox snaps require classic confinement mode
if [ "${snap}" = "checkbox" ] || [ "${snap}" = "checkbox-erlangen-classic" ]; then
cat >> /var/lib/snapd/seed/seed.yaml << EOF
classic: true
Expand Down

0 comments on commit 211d75b

Please sign in to comment.