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
@@ -16,7 +16,7 @@ mkdir -p "$KERNEL_BUILD_DIR" "$MODULES_STAGING_DIR"
|
||||
make -C "$KERNEL_SRC_DIR" O="$KERNEL_BUILD_DIR" ARCH="$ARCH" x86_64_defconfig
|
||||
apply_kconfig_fragment "$KERNEL_BUILD_DIR/.config" "$ROOT_DIR/config/kernel.fragment"
|
||||
cmdline_fragment=$(mktemp)
|
||||
printf 'CONFIG_CMDLINE="root=PARTLABEL=root rootfstype=ext4 rootwait rw console=tty0 console=ttyS0,115200n8 loglevel=7 ignore_loglevel i915.enable_psr=0 i915.fastboot=0"\n' > "$cmdline_fragment"
|
||||
printf 'CONFIG_CMDLINE="root=PARTLABEL=root rootfstype=ext4 rootwait ro console=tty0 console=ttyS0,115200n8 loglevel=7 ignore_loglevel i915.enable_psr=0 i915.fastboot=0"\n' > "$cmdline_fragment"
|
||||
apply_kconfig_fragment "$KERNEL_BUILD_DIR/.config" "$cmdline_fragment"
|
||||
rm -f "$cmdline_fragment"
|
||||
make -C "$KERNEL_SRC_DIR" O="$KERNEL_BUILD_DIR" ARCH="$ARCH" olddefconfig
|
||||
|
||||
Reference in new issue
Block a user