Skip to content

Commit

Permalink
Add live ISO to deployed artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
knuton committed Jul 20, 2023
1 parent 0d21b17 commit 8ec411e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions controller/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- os: Widen rules for captive portal detection
- os: Split system definition into base and application layers
- os: Make build outputs and displayed system name configurable through application layer
- os: Include live system ISO in deployed outputs

# [2023.2.0] - 2023-03-06

Expand Down
4 changes: 2 additions & 2 deletions deployment/deploy-update/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ substituteAll
, application, updateCert, unsignedRaucBundle, docs, installer
, application, updateCert, unsignedRaucBundle, docs, installer, live
, deployUrl, updateUrl, kioskUrl
, rauc, awscli, python39
}:
substituteAll {
src = ./deploy-update.py;
dummyBuildCert = ../../pki/dummy/cert.pem;
inherit updateCert unsignedRaucBundle docs installer deployUrl updateUrl kioskUrl;
inherit updateCert unsignedRaucBundle docs installer live deployUrl updateUrl kioskUrl;
inherit rauc awscli python39;
inherit (application) fullProductName safeProductName version;
}
8 changes: 8 additions & 0 deletions deployment/deploy-update/deploy-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

UNSIGNED_RAUC_BUNDLE = "@unsignedRaucBundle@"
INSTALLER_ISO = "@installer@"
LIVE_ISO = "@live@"
DOCS = "@docs@"
VERSION = "@version@"
FULL_PRODUCT_NAME = "@fullProductName@"
Expand Down Expand Up @@ -123,6 +124,13 @@ def _main(opts):
subprocess.run(["cp", installer_iso_src, installer_iso_dst],
check=True)

# Write live system ISO
live_iso_filename = f"{SAFE_PRODUCT_NAME}-live-{VERSION}.iso"
live_iso_src = os.path.join(LIVE_ISO, "iso", live_iso_filename)
live_iso_dst = os.path.join(version_dir, live_iso_filename)
subprocess.run(["cp", live_iso_src, live_iso_dst],
check=True)

# Write PDF manual
manual_filename = f"{SAFE_PRODUCT_NAME}-manual-{VERSION}.pdf"
manual_src = os.path.join(DOCS, "user-manual.pdf")
Expand Down

0 comments on commit 8ec411e

Please sign in to comment.