From 74d2f4c1db0531f6bb8866d714e2cd502544117b Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 10 Aug 2022 18:33:48 +0200 Subject: [PATCH] Bind /sys --- path/wdvn-chroot | 1 + path/wdvn-chroot-end | 1 + 2 files changed, 2 insertions(+) diff --git a/path/wdvn-chroot b/path/wdvn-chroot index 29a6651..47fda0f 100755 --- a/path/wdvn-chroot +++ b/path/wdvn-chroot @@ -3,6 +3,7 @@ set -e mount -o bind "/dev" "$1/dev" mount -o bind "/dev/pts" "$1/dev/pts" + mount -o bind "/sys" "$1/sys" mount -t proc none "$1/proc" chroot "$1" ${@:2} ) diff --git a/path/wdvn-chroot-end b/path/wdvn-chroot-end index 9ba4957..9f7c139 100755 --- a/path/wdvn-chroot-end +++ b/path/wdvn-chroot-end @@ -1,4 +1,5 @@ #!/bin/bash umount -l "$1/proc" +umount -l "$1/sys" umount -l "$1/dev/pts" umount -l "$1/dev" \ No newline at end of file