Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-12-07 20:18:47 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-07 20:18:47 +0100
commit0de302c47dfde75f8a4967c03f7757e3ad86ee39 (patch)
tree1904d25f08fe024e4b29b9c5ac10d566ba7864df
parentba863c341d9436b7dd2cc5b6904c4567baa76088 (diff)
Updated fstab to better match the given input
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 6d3be605..56cba9fb 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -118,9 +118,9 @@ class Installer():
def genfstab(self, flags='-pU'):
self.log(f"Updating {self.mountpoint}/etc/fstab", level=LOG_LEVELS.Info)
- o = b''.join(sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}'))
- with open(f"{self.mountpoint}/etc/fstab", 'a') as fstab:
- fstab.write(f"\n{o.decode('UTF-8')}")
+ with open(f"{self.mountpoint}/etc/fstab", 'ab') as fstab:
+ for line in sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}'):
+ fstab.write(f"{line}\n")
if not os.path.isfile(f'{self.mountpoint}/etc/fstab'):
raise RequirementError(f'Could not generate fstab, strapping in packages most likely failed (disk out of space?)\n{o}')