summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-03-16 11:25:27 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-03-16 11:25:27 +0000
commit87c07470ad1d37841dcb594c53715ea3518bd4e9 (patch)
tree4ac2dfbe223582e3ac4885aabb6ae524cefe4ee1 /morphlib/builder.py
parentb574e357509f553b5ea4a5261398827a7cdeb40a (diff)
downloadmorph-87c07470ad1d37841dcb594c53715ea3518bd4e9.tar.gz
SystemBuilder: add newlines to fstab
f.write does not add them
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index 6894c318..bf607d34 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -503,9 +503,9 @@ class SystemBuilder(BlobBuilder): # pragma: no cover
if not os.path.exists(os.path.dirname(fstab)):
os.makedirs(os.path.dirname(fstab))
with open(fstab, 'w') as f:
- f.write('proc /proc proc defaults 0 0')
- f.write('sysfs /sys sysfs defaults 0 0')
- f.write('/dev/sda1 / ext4 errors=remount-ro 0 1')
+ f.write('proc /proc proc defaults 0 0\n')
+ f.write('sysfs /sys sysfs defaults 0 0\n')
+ f.write('/dev/sda1 / ext4 errors=remount-ro 0 1\n')
def _install_extlinux(self, mount_point):
with self.build_watch('install-bootloader'):