Skip to content

Commit 8329e9a

Browse files
committed
feat(mount): process /etc/fstab during initialization (#12)
Add mount -a command to process /etc/fstab entries, enabling virtiofs shares
1 parent 6821742 commit 8329e9a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

init/init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ static int mount_filesystems()
449449
/* May fail if already exists and that's fine. */
450450
symlink("/proc/self/fd", "/dev/fd");
451451

452+
/* Process /etc/fstab to mount additional filesystems, including virtiofs shares */
453+
system("/bin/mount -a")
454+
452455
return 0;
453456
}
454457

0 commit comments

Comments
 (0)