From ad6548f8398fe1d95da6c987a96c208cb4aa51d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4r?= Date: Sat, 11 May 2024 13:55:44 +0200 Subject: [PATCH] Only load the squashfs into RAM Before this, it loaded everything from the ISO into RAM, now it only loads the squashfs. This saves about 110 MB of space in RAM, and reduces boot time. --- os/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/build.py b/os/build.py index 23e6127..a072ca8 100755 --- a/os/build.py +++ b/os/build.py @@ -23,12 +23,12 @@ VARIANT_LABEL = { VARIANT_BOOT_OPTIONS = { "contestant": [ - dict(label="SOI contest", cmdline="boot=live toram"), + dict(label="SOI contest", cmdline="boot=live toram=filesystem.squashfs"), dict(label="SOI contest, run from drive", cmdline="boot=live"), dict(label="SOI contest, fail-safe mode", cmdline="@LB_BOOTAPPEND_LIVE_FAILSAFE@"), ], "training-live": [ - dict(label="SOI live system, run from RAM", cmdline="boot=live toram"), + dict(label="SOI live system, run from RAM", cmdline="boot=live toram=filesystem.squashfs"), dict(label="SOI live system, run from drive", cmdline="boot=live"), dict(label="SOI live system, fail-safe mode", cmdline="@LB_BOOTAPPEND_LIVE_FAILSAFE@"), ], @@ -131,7 +131,7 @@ def main(): VARIANT_EXTRA_BOOTSTRAP.get(args.variant, ""), "--loadlin", "false", "--iso-volume", f"SOI {VARIANT_LABEL[args.variant]} @ISOVOLUME_TS@", - "--bootappend-live", "boot=live toram", + "--bootappend-live", "boot=live toram=filesystem.squashfs", ] + VARIANT_EXTRA_LB_CONFIG.get(args.variant, []) )