Skip to content

Commit 8693029

Browse files
committed
Add extra info
1 parent 9d7e6ba commit 8693029

File tree

1 file changed

+6
-4
lines changed
  • sites/cheerpx/src/content/docs/12-reference/CheerpX.Linux

1 file changed

+6
-4
lines changed

sites/cheerpx/src/content/docs/12-reference/CheerpX.Linux/00-create.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ interface MountPointConfiguration {
4343
// Specifies the filesystem type
4444
// 'ext2' for Linux ext2
4545
// 'dir' for a hierarchical file system
46-
// 'devs' for device files
47-
// 'proc' for process info files.
46+
// 'devs' for device files (no device required)
47+
// 'proc' for process info files. (no device required)
4848
type: "ext2" | "dir" | "devs" | "proc";
4949

5050
// First mount must be "/" (root)
5151
path: string;
52-
// Can be one of: overlayDevice / webDevice / dataDevice / idbDevice
53-
dev: CheerpX.Device;
52+
// Required for 'ext2' and 'dir' types, but optional for 'devs' and 'proc'
53+
dev?: CheerpX.Device;
5454
}
5555
```
5656

@@ -61,6 +61,8 @@ const cx = await CheerpX.Linux.create({
6161
mounts: [
6262
{ type: "ext2", path: "/", dev: overlayDevice },
6363
{ type: "dir", path: "/app", dev: webDevice },
64+
{ type: "devs", path: "/dev" }, // No dev required
65+
{ type: "proc", path: "/proc" }, // No dev required
6466
],
6567
});
6668
```

0 commit comments

Comments
 (0)