mirror of
https://github.com/blazblue547-afk/ForgeOS.git
synced 2026-12-02 14:34:17 -05:00
feat(image): add atomic app layer
Keep the base root read-only and move mutable Nix, home, var, opt, and usr-local state onto a writable FORGE_APPS partition. Normalize ext4 ownership during image creation so forge can manage user profiles through nix-daemon without owning system paths.
This commit is contained in:
1 parent
eb8038ef4c
commit
2e202eae01
17 files changed
+496
-71
No files matched your search
@@ -12,6 +12,8 @@ export DESKTOP ?= console
|
||||
export ENABLE_DESKTOP ?= 0
|
||||
export ROOT_LABEL ?= FORGE_ROOT
|
||||
export EFI_LABEL ?= FORGE_EFI
|
||||
export APP_LABEL ?= FORGE_APPS
|
||||
export ATOMIC_BASE ?= 1
|
||||
desktop_enabled := $(filter 1 true TRUE yes YES on ON,$(ENABLE_DESKTOP))
|
||||
export IMAGE_SIZE_MIB ?= $(if $(filter gnome,$(DESKTOP)),12288,$(if $(desktop_enabled),6144,4096))
|
||||
export ESP_SIZE_MIB ?= 256
|
||||
@@ -40,6 +42,7 @@ help:
|
||||
' ENABLE_DESKTOP=1 make rootfs - add Openbox/tint2/PCManFM desktop' \
|
||||
' make gnome-rootfs - assemble a Debian GNOME desktop rootfs' \
|
||||
' make image - build a bootable GPT/UEFI disk image' \
|
||||
' make image builds an atomic read-only base plus writable app/state layer' \
|
||||
' make gnome-image - build a bootable GPT/UEFI GNOME disk image' \
|
||||
' make secure-boot-keys - generate a local Secure Boot signing keypair' \
|
||||
' make run - boot kernel + initramfs in QEMU' \
|
||||
@@ -101,7 +104,7 @@ run-image:
|
||||
@./scripts/run-qemu.sh image
|
||||
|
||||
run-desktop: ENABLE_DESKTOP = 1
|
||||
run-desktop: IMAGE_SIZE_MIB = 4096
|
||||
run-desktop: IMAGE_SIZE_MIB = 6144
|
||||
run-desktop: MEMORY_MB = 3072
|
||||
run-desktop: image
|
||||
@./scripts/run-qemu.sh image-gui
|
||||
|
||||
Reference in new issue
Block a user