Commit-ID: fdec695b2a532cbbc35c52979ffbdad3091e9db5 Gitweb: http://git.kernel.org/tip/fdec695b2a532cbbc35c52979ffbdad3091e9db5 Author: Asias He <asias.hejun@xxxxxxxxx> AuthorDate: Fri, 24 Aug 2012 19:29:41 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Fri, 24 Aug 2012 16:15:50 +0300 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 <asias.hejun@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/guest/init.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm/guest/init.c b/tools/kvm/guest/init.c index 44e7db8..e1f377f 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[]) -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html