From da3ba599bfd4a534aef5173d3dd0b5b7cb6790a4 Mon Sep 17 00:00:00 2001 From: lslx Date: Wed, 23 May 2018 14:52:39 +0800 Subject: [PATCH] add debugfs support,somebody need it --- cli.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cli.sh b/cli.sh index a847015..dea128e 100755 --- a/cli.sh +++ b/cli.sh @@ -615,6 +615,17 @@ mount_part() msg "skip" fi ;; + debugfs) + msg -n "/debugfs ... " + local target="${CHROOT_DIR}/sys/kernel/debug" + if ! is_mounted "${target}" ; then + [ -d "${target}" ] || mkdir -p "${target}" + mount -t debugfs none "${target}" + is_ok "fail" "done" + else + msg "skip" + fi + ;; dev) msg -n "/dev ... " local target="${CHROOT_DIR}/dev" @@ -698,7 +709,7 @@ container_mount() [ "${METHOD}" = "chroot" ] || return 0 if [ $# -eq 0 ]; then - container_mount root proc sys dev shm pts fd tty tun binfmt_misc + container_mount root proc sys debugfs dev shm pts fd tty tun binfmt_misc return $? fi