From 9ca642b82171ff74f193f3f2e4c1a39446ec83c0 Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Thu, 11 Jun 2026 00:40:43 -0300 Subject: [PATCH] rootfs-handoff: Milestone D - adapt /sbin/init and fstab for post-handoff - Updated /etc/fstab with documentation for post-handoff configuration - Documented that root filesystem is already mounted by kernel on /newroot - Documented that early /init performs pivot_root to make /newroot the new root - Documented that virtual filesystems are moved by early /init - Documented that /sbin/init runs after handoff and skips already-mounted filesystems - /sbin/init already has is_mounted() check to avoid duplicate mounts - No code changes needed in /sbin/init - already compatible with handoff Test Results: - Smoke test: 131/131 PASS - Battery test: 157/157 PASS - Analyzer: PASS - Zero regressions --- rootfs/etc/fstab | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/fstab b/rootfs/etc/fstab index 972d0747..1be12bc7 100644 --- a/rootfs/etc/fstab +++ b/rootfs/etc/fstab @@ -1,4 +1,11 @@ # /etc/fstab — AdrOS filesystem table # -# Disk-based filesystems (fat, ext2) are auto-mounted by /sbin/init -# or the kernel when a root= device is specified. +# +# POST-HANDOFF CONFIGURATION (Milestone D): +# - Root filesystem is already mounted by kernel on /newroot +# - Early /init performs pivot_root to make /newroot the new root +# - Virtual filesystems (/dev, /proc, /tmp) are moved by early /init +# - /sbin/init runs after handoff and skips already-mounted filesystems +# +# Additional disk filesystems can be added here if needed: +# Example: /dev/hdb1 /mnt/data ext2 defaults -- 2.43.0