Add the build-in-devfs command to builder

This commit is contained in:
Sameer Rahmani 2022-07-12 00:34:30 +01:00
parent fa6273f0bf
commit 2f64811aa0
2 changed files with 11 additions and 0 deletions

View File

@ -36,3 +36,4 @@ repos:
rev: 1.0.5
hooks:
- id: shell-lint
args: ['-x']

10
builder
View File

@ -365,6 +365,16 @@ function destroy-devfs() { ## Destroy the 'devfs' by unmounting the volumes and
unmount_and_destroy_devfs "$rootfs"
}
function build-in-devfs() { ## Destroy the 'devfs' by unmounting the volumes and deleting the files
# shellcheck source=/dev/null
source .env
local rootfs
rootfs="$DEV_FS_DIR/fs"
rootless "$rootfs" ./builder build
}
function devfs_root_shell() { ## Get a bash shell as root on the devfs
# shellcheck source=/dev/null
source .env