From: Asias He Date: Fri, 24 Aug 2012 11:29:41 +0000 (+0800) Subject: kvm tools: Mount devpts to /dev/pts X-Git-Tag: next-20120904~31^2~4^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fdec695b2a532cbbc35c52979ffbdad3091e9db5;p=karo-tx-linux.git kvm tools: Mount devpts to /dev/pts I'm seeing this in guest due to lacking of /dev/pts: sh-4.2# xterm xterm: Error 32, errno 28: No space left on device Reason: get_pty: not enough ptys Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/guest/init.c b/tools/kvm/guest/init.c index 44e7db811c47..e1f377f714a6 100644 --- a/tools/kvm/guest/init.c +++ b/tools/kvm/guest/init.c @@ -31,6 +31,8 @@ static void do_mounts(void) mount("", "/sys", "sysfs", 0, NULL); mount("proc", "/proc", "proc", 0, NULL); mount("devtmpfs", "/dev", "devtmpfs", 0, NULL); + mkdir("/dev/pts", 0755); + mount("devpts", "/dev/pts", "devpts", 0, NULL); } int main(int argc, char *argv[])