index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-12-07 20:18:47 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-12-07 20:18:47 +0100 |
commit | 0de302c47dfde75f8a4967c03f7757e3ad86ee39 (patch) | |
tree | 1904d25f08fe024e4b29b9c5ac10d566ba7864df | |
parent | ba863c341d9436b7dd2cc5b6904c4567baa76088 (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 6 |
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}') |