Skip to content

Commit 3c4dcea

Browse files
authored
feat: add EDITBASE_MOUNT_SYS to mount /sys in chroot (#40)
1 parent aac68fb commit 3c4dcea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/chroot.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@ function prepare_chroot_environment() {
3131
echo "Mounting /proc of host..."
3232
mount -t proc /proc proc/
3333
fi
34+
35+
# mount /sys if configured to do so
36+
if [ "$EDITBASE_MOUNT_SYS" == "1" ]; then
37+
echo "Mounting /sys of host..."
38+
mount -t sysfs /sys sys/
39+
fi
3440
}

0 commit comments

Comments
 (0)