[Vmdebootstrap-devel] Bug#802752: [PATCH] add devpts
James Cameron
quozl at laptop.org
Fri Oct 23 07:34:33 UTC 2015
fixes #802752
---
v1: not tested, proposed for discussion
vmdebootstrap | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vmdebootstrap b/vmdebootstrap
index 67ea2c8..f37d3d1 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -848,6 +848,8 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
def _mount_wrapper(self, rootdir):
self.runcmd(['mount', '/dev', '-t', 'devfs', '-obind',
'%s' % os.path.join(rootdir, 'dev')])
+ self.runcmd(['mount', '/dev/pts', '-t', 'devpts', '-obind',
+ '%s' % os.path.join(rootdir, 'dev', 'pts')])
self.runcmd(['mount', '/proc', '-t', 'proc', '-obind',
'%s' % os.path.join(rootdir, 'proc')])
self.runcmd(['mount', '/sys', '-t', 'sysfs', '-obind',
@@ -856,6 +858,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
def _umount_wrapper(self, rootdir):
self.runcmd(['umount', os.path.join(rootdir, 'sys')])
self.runcmd(['umount', os.path.join(rootdir, 'proc')])
+ self.runcmd(['umount', os.path.join(rootdir, 'dev', 'pts')])
self.runcmd(['umount', os.path.join(rootdir, 'dev')])
def install_grub_uefi(self, rootdir):
--
1.9.1
--
James Cameron
http://quozl.linux.org.au/
More information about the Vmdebootstrap-devel
mailing list