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
@@ -106,8 +106,7 @@ console_note "ForgeOS initramfs: locating real root filesystem..."
|
||||
ROOTDEV=$(wait_for_root_device) || drop_to_rescue "root partition not found" || exit 1
|
||||
|
||||
mkdir -p "$NEWROOT"
|
||||
mount -t ext4 -o rw "$ROOTDEV" "$NEWROOT" 2>/dev/null || \
|
||||
mount -t ext4 -o ro "$ROOTDEV" "$NEWROOT" 2>/dev/null || \
|
||||
mount -t ext4 -o ro "$ROOTDEV" "$NEWROOT" 2>/dev/null || \
|
||||
drop_to_rescue "could not mount $ROOTDEV" || exit 1
|
||||
|
||||
if ! is_mounted_newroot; then
|
||||
|
||||
Reference in new issue
Block a user