vfs: replace asr.mnt with mount.asr declarative boot mounts
- Add mount.asr parser in auto_mount_volumes: reads MOUNT.ASR from boot
volume root, parses 'mnt {device}<src> <target>' lines, expands {device}
to the boot volume's /disk/volN path, creates symlinks for each entry
- Remove old asr.mnt persistent mount logic from auto_mount_volumes
- Remove persistent mount write ([p] flag) from MOUNT shell command
- Remove hardcoded /boot mount for boot volumes (now driven by mount.asr)
- Add iso/mount.asr with default /boot and /sys symlinks
- Update doc/vfs.md with mount.asr documentation
This commit is contained in:
+13
-1
@@ -395,7 +395,19 @@ Mounts a storage volume at the given VFS path. The path must be an existing virt
|
||||
procedure auto_mount_volumes();
|
||||
```
|
||||
|
||||
Automatically mounts all detected volumes under `/disk/` with auto-generated names.
|
||||
Automatically mounts all detected volumes under `/disk/` with auto-generated names (`/disk/vol0`, `/disk/vol1`, ...).
|
||||
|
||||
After mounting all volumes, reads `MOUNT.ASR` from the root of the boot volume (ISO). Each line in the file is a command:
|
||||
|
||||
```
|
||||
mnt {device}/boot /boot
|
||||
mnt {device}/sys /sys
|
||||
```
|
||||
|
||||
- `mnt <source> <target>` — creates a symlink from `<target>` to `<source>`.
|
||||
- `{device}` is replaced with the boot volume's mount path (e.g. `/disk/vol2`).
|
||||
|
||||
This replaces the old `asr.mnt` persistent-mount mechanism.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Generated
+2
@@ -0,0 +1,2 @@
|
||||
mnt {device}/boot /boot
|
||||
mnt {device}/sys /sys
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user