From b0b944404a37190dc82e14fd4be999d8c08126d2 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sun, 1 Nov 2015 19:25:26 +0100 Subject: [PATCH] Create useable fstab for kfreebsd systems --- vmdebootstrap | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vmdebootstrap b/vmdebootstrap index 8deda74..c9764ae 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -720,8 +720,13 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth fstab = os.path.join(rootdir, 'etc', 'fstab') with open(fstab, 'w') as f: - f.write('proc /proc proc defaults 0 0\n') - f.write('%s / %s errors=remount-ro 0 1\n' % (rootdevstr, roottype)) + if 'freebsd' in os.sys.platform: + f.write('proc /proc linprocfs rw 0 0\n') + f.write('sys /sys linsysfs rw 0 0\n') + f.write('fdesc /dev/fd fdescfs rw 0 0\n') + else: + f.write('proc /proc proc defaults 0 0\n') + f.write('%s / %s rw 0 1\n' % (rootdevstr, roottype)) if bootdevstr: f.write('%s /boot %s errors=remount-ro 0 2\n' % (bootdevstr, boottype)) if self.settings['swap'] > 0: -- 2.39.2