From 5987ea7916a87e755cc677adb68ee165582f1c39 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Mon, 6 Dec 2021 07:15:37 +0100 Subject: [PATCH] Bump image size to 1800M for 3+4 families on bookworm. --- generate-recipe.py | 8 ++++++++ raspi_master.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/generate-recipe.py b/generate-recipe.py index a8f428f..96a1cf1 100755 --- a/generate-recipe.py +++ b/generate-recipe.py @@ -25,6 +25,13 @@ target_yaml = 'raspi_%s_%s.yaml' % (version, suite) ### Setting variables based on suite and version starts here +# Size: +if version in ['3', '4'] and suite in ['bookworm']: + # Needed as of 2021-12: + imgsize = '1800M' +else: + imgsize = '1500M' + # Arch, kernel, DTB: if version == '1': arch = 'armel' @@ -149,6 +156,7 @@ with open('raspi_master.yaml', 'r') as in_file: in_text = in_file.read() out_text = in_text \ .replace('__RELEASE__', suite) \ + .replace('__IMGSIZE__', imgsize) \ .replace('__ARCH__', arch) \ .replace('__LINUX_IMAGE__', linux) \ .replace('__DTB__', dtb) \ diff --git a/raspi_master.yaml b/raspi_master.yaml index 683f71e..f3cf11e 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -2,7 +2,7 @@ steps: - mkimg: "{{ output }}" - size: 1500M + size: __IMGSIZE__ - mklabel: msdos device: "{{ output }}"