]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Create useable fstab for kfreebsd systems master
authorChristoph Egger <christoph@christoph-egger.org>
Sun, 1 Nov 2015 18:25:26 +0000 (19:25 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Sun, 1 Nov 2015 18:25:26 +0000 (19:25 +0100)
vmdebootstrap

index 8deda74e03a343260fdad12502dce652e29519df..c9764ae67c44fffe66cdff7b42d23fe4acbca7a6 100755 (executable)
@@ -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: