Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSP: Expand distribution status with possible upgrade information #7303

Merged
merged 2 commits into from
Sep 27, 2024
Merged
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
1 change: 1 addition & 0 deletions config/distributions/bookworm/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4
1 change: 1 addition & 0 deletions config/distributions/bookworm/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trixie,testing
1 change: 1 addition & 0 deletions config/distributions/bullseye/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
1 change: 1 addition & 0 deletions config/distributions/bullseye/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bookworm,trixie,testing
1 change: 1 addition & 0 deletions config/distributions/buster/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
1 change: 1 addition & 0 deletions config/distributions/buster/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bullseye,bookworm,trixie,testing
1 change: 1 addition & 0 deletions config/distributions/focal/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2
1 change: 1 addition & 0 deletions config/distributions/focal/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jammy,noble,oracular
1 change: 1 addition & 0 deletions config/distributions/jammy/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
1 change: 1 addition & 0 deletions config/distributions/jammy/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
noble,oracular
1 change: 1 addition & 0 deletions config/distributions/noble/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
1 change: 1 addition & 0 deletions config/distributions/noble/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oracular
1 change: 1 addition & 0 deletions config/distributions/oracular/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
1 change: 1 addition & 0 deletions config/distributions/oracular/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
none
1 change: 1 addition & 0 deletions config/distributions/sid/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
1 change: 1 addition & 0 deletions config/distributions/sid/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
none
1 change: 1 addition & 0 deletions config/distributions/trixie/order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
1 change: 1 addition & 0 deletions config/distributions/trixie/upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
testing
7 changes: 4 additions & 3 deletions lib/functions/bsp/armbian-bsp-cli-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ function compile_armbian-bsp-cli() {
activate update-initramfs
EOF

# copy distribution support status # @TODO: why? this changes over time and will be out of date
local releases=($(find ${SRC}/config/distributions -mindepth 1 -maxdepth 1 -type d))
# copy distribution support and upgrade status
# this information is used in motd to show status and within armbian-config to perform upgrades
local releases=($(find ${SRC}/config/distributions -iname '*order*' -exec echo {} \; -exec cat {} \; | xargs -n2 -d'\n' | sort -nk2 | sed "s/\/order.*//g"))
for i in "${releases[@]}"; do
echo "$(echo $i | sed 's/.*\///')=$(cat $i/support)" >> "${destination}"/etc/armbian-distribution-status
echo "$(echo $i | sed 's/.*\///')=$(cat $i/support)$(echo ";upgrade" | sed 's/.*\///')=$(cat $i/upgrade)" >> "${destination}"/etc/armbian-distribution-status
done

# execute $LINUXFAMILY-specific tweaks
Expand Down