Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Imager: accept point-release tags (v0.8.4.1-beta), so the 0.8.4.1 Pi image is listed instead of 0.8.3

Federico Pereirabb0bc7e23918
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13cdd4c..28a757d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -40,6 +40,8 @@ of the matching [GitHub release](https://github.com/lordbasex/LordOS/releases),
### Fixed
+- **LordOS Imager offered 0.8.3 as the newest Raspberry Pi image.** It only accepted release tags
+ with three numbers, so it skipped 0.8.4.1; point releases (`v0.8.4.1-beta`) are now listed.
- A monitor plugged in after boot now shows the login screen. The login screen never listened for the
kernel's display events, so a board booted without HDMI (a Raspberry Pi 5) stayed without video until
it was restarted. It now follows them like a session does, without the system bus.
diff --git a/apps/imager/core/releases.js b/apps/imager/core/releases.js
index 1e4c9ed..90e0d92 100644
--- a/apps/imager/core/releases.js
+++ b/apps/imager/core/releases.js
@@ -10,7 +10,8 @@ export const downloadUrl = (tag, name) => `https://github.com/${REPO}/releases/d
// The fingerprint docs/SIGNING.md publishes (SHA-256 of the DER public key)
export const RELEASE_KEY_FINGERPRINT = 'c7155b8e6bbbb180f907381994d06af76d333016cd6f3facf67cadd053ea108e';
-const TAG = /^v[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}(-[a-z0-9.]+)?$/;
+// v0.8.3-beta, and point updates with a fourth number: v0.8.4.1-beta
+const TAG = /^v[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}(\.[0-9]{1,4})?(-[a-z0-9.]+)?$/;
const NAME = /^[A-Za-z0-9][A-Za-z0-9._+~-]{0,127}$/;
// [{ tag, version, date, prerelease, image: {name,size}, sums: {name,size}, sig: {name,size} }],
diff --git a/server/tests/imager_core_test.mjs b/server/tests/imager_core_test.mjs
index 79c4813..bd3143e 100644
--- a/server/tests/imager_core_test.mjs
+++ b/server/tests/imager_core_test.mjs
@@ -111,6 +111,9 @@ const pc = rel.parseReleases(fs.readFileSync(path.join(here, 'imager/releases.js
ok('pc iso', pc[0].image.name === 'lordos-live-0.8.3-amd64.iso');
ok('garbage list', rel.parseReleases('nope', 'rpi5').length === 0 && rel.parseReleases('{}', 'rpi5').length === 0);
ok('hostile names dropped', rel.parseReleases([{ tag_name: 'v1.0.0', assets: [{ name: '../lordos-1.0.0-rpi5-arm64.img.xz', size: 5 }, { name: 'SHA256SUMS', size: 5 }, { name: 'SHA256SUMS.sig', size: 5 }] }], 'rpi5').length === 0);
+const point = rel.parseReleases([{ tag_name: 'v0.8.4.1-beta', published_at: '2026-10-25T20:00:00Z', assets: [{ name: 'lordos-0.8.4.1-rpi5-arm64.img.xz', size: 5 }, { name: 'SHA256SUMS', size: 5 }, { name: 'SHA256SUMS.sig', size: 5 }] }], 'rpi5');
+ok('point release (four numbers)', point.length === 1 && point[0].version === '0.8.4.1' && point[0].image.name === 'lordos-0.8.4.1-rpi5-arm64.img.xz');
+ok('five numbers dropped', rel.parseReleases([{ tag_name: 'v0.8.4.1.2', assets: [{ name: 'lordos-0.8.4.1.2-rpi5-arm64.img.xz', size: 5 }, { name: 'SHA256SUMS', size: 5 }, { name: 'SHA256SUMS.sig', size: 5 }] }], 'rpi5').length === 0);
ok('bad tag dropped', rel.parseReleases([{ tag_name: 'v1.0.0/../x', assets: [] }], 'rpi5').length === 0);
ok('fits', rel.fits(2.8e9, 4e9) === 'yes' && rel.fits(2.8e9, 2.9e9) === 'tight' && rel.fits(3e9, 2e9) === 'no');
ok('download url', rel.downloadUrl('v0.8.3-beta', 'SHA256SUMS') === 'https://github.com/lordbasex/LordOS/releases/download/v0.8.3-beta/SHA256SUMS');