27 lines
607 B
JavaScript
27 lines
607 B
JavaScript
//@ts-check
|
|
const { cmount, mount, flags } = require('../../chibrax/mount.js')
|
|
|
|
async function init() {
|
|
cmount("dummy", "/proc", "proc",
|
|
flags.MS_NODEV | flags.MS_RDONLY | flags.MS_NOSUID | flags.MS_RELATIME | flags.MS_NOEXEC
|
|
, "")
|
|
|
|
mount("dummy", "/sys", "sysfs", flags.MS_NODEV | flags.MS_NOSUID | flags.MS_RELATIME | flags.MS_NOEXEC, "")
|
|
mount("dummy", "/tmp", "tmpfs", flags.MS_NODEV, "")
|
|
}
|
|
|
|
/**
|
|
* @type { string[] }
|
|
*/
|
|
const after = [] // list of init script to load before
|
|
/**
|
|
* @type { string[] }
|
|
*/
|
|
const before = []
|
|
|
|
module.exports = {
|
|
init,
|
|
after,
|
|
before
|
|
}
|