diff options
author | Andy Lutomirski <luto@kernel.org> | 2017-04-20 09:17:08 -0700 |
---|---|---|
committer | Andy Lutomirski <luto@kernel.org> | 2017-04-20 09:17:08 -0700 |
commit | fea83eecf86cb95080a9e31ab9cd606839884e0b (patch) | |
tree | 72a7376491e56bdf326b80a449e499c99d78393b | |
parent | 3be28dc57a7f0698d290e9e8686aa7e0fbec0801 (diff) | |
download | virtme-fea83eecf86cb95080a9e31ab9cd606839884e0b.tar.gz |
virtme-init: Mount configfs and debugfs if available
This removes some steps in using a bunch of testing tools.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
-rwxr-xr-x | virtme/guest/virtme-init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init index f7f1069..c2860ae 100755 --- a/virtme/guest/virtme-init +++ b/virtme/guest/virtme-init @@ -113,6 +113,10 @@ else log "udevd not found" fi +# Set up useful things in /sys, assuming our kernel supports it. +mount -t configfs configfs /sys/kernel/config &>/dev/null +mount -t debugfs debugfs /sys/kernel/debug &>/dev/null + # Set up filesystems that live in /dev mkdir -p -m 0755 /dev/shm /dev/pts mount -t devpts -o gid=tty,mode=620,noexec,nosuid devpts /dev/pts |