]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
rootfs-handoff: add UUID= and LABEL= support for root= parameter
authorTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 03:54:56 +0000 (00:54 -0300)
committerTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 03:54:56 +0000 (00:54 -0300)
commit3610f63900614bc0eb0923777463978435802ec2
treed6cd6166c2d0400a080d87356380141dacb3ea47
parentf5e81560bcfc182c391b1672c4eeedaf262f7da1
rootfs-handoff: add UUID= and LABEL= support for root= parameter

- Added ext2_get_uuid_label() function in ext2.c to extract UUID and volume name
- Added format_uuid() helper to format 16-byte UUID to string format
- Added uuid_matches() helper to compare UUID string with binary UUID
- Added resolve_by_uuid_label() function in init.c to scan block devices and partitions
- Modified init_resolve_mount_device() to recognize UUID= and LABEL= prefixes
- Scans all ATA devices (hda-hdd) and their partitions (hda1-hda4)
- Supports ext2 filesystems (UUID and volume name from superblock)
- This implements the 'UUID= and LABEL= support' item from ROOTFS_HANDOFF_PLAN.md

Test Results:
- Smoke test: 131/131 PASS
- Battery test: 157/157 PASS
- Analyzer: PASS
- Zero regressions
include/ext2.h
src/kernel/ext2.c
src/kernel/init.c