From 87ff2ed4e709a7d18bb3598a6f1e59388a520631 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Fri, 18 Mar 2022 08:53:46 +0100 Subject: [PATCH] Entry for Debian bookworm Signed-off-by: Thomas Glanzmann --- data/installer_data.json | 26 ++++++++++++++++++++++++++ src/osinstall.py | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/data/installer_data.json b/data/installer_data.json index 487134a..c4e1c00 100644 --- a/data/installer_data.json +++ b/data/installer_data.json @@ -54,6 +54,32 @@ } ] }, + { + "name": "Debian bookworm (testing) packaged by Thomas Glanzmann", + "default_os_name": "Debian", + "boot_object": "m1n1.bin", + "next_object": "m1n1/boot.bin", + "package": "https://tg.st/u/debian-base.zip", + "supported_fw": ["12.3"], + "partitions": [ + { + "name": "EFI", + "type": "EFI", + "size": "512MB", + "format": "fat", + "copy_firmware": true, + "copy_installer_data": true, + "source": "esp" + }, + { + "name": "Root", + "type": "Linux", + "size": "5GB", + "expand": true, + "image": "media" + } + ] + }, { "name": "UEFI environment only (m1n1 + U-Boot + ESP)", "default_os_name": "UEFI boot", diff --git a/src/osinstall.py b/src/osinstall.py index 8e3938f..359643c 100644 --- a/src/osinstall.py +++ b/src/osinstall.py @@ -36,7 +36,8 @@ class OSInstaller(PackageInstaller): if not package: return - package = os.environ.get("REPO_BASE", ".") + "/os/" + package + if not package.startswith("http"): + package = os.environ.get("REPO_BASE", ".") + "/os/" + package logging.info(f"OS package URL: {package}") if package.startswith("http"): -- 2.35.1