index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-12-07 20:31:18 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-12-07 20:31:18 +0100 |
commit | ada7a0515bbc8680246039f4b26e2c40b42d3d67 (patch) | |
tree | 7a235a0a2ba2890244d872f279b4dbc81ff78c0f /archinstall/lib | |
parent | 881d77064c1fffacedd5910db4507b8bb982248f (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 8 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index a50c1ad2..20d849d1 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -118,10 +118,10 @@ class Installer(): def genfstab(self, flags='-pU'): self.log(f"Updating {self.mountpoint}/etc/fstab", level=LOG_LEVELS.Info) - with open(f"{self.mountpoint}/etc/fstab", 'ab') as fstab: - for line in sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}'): - print('Writing fstab:', line + b'\n') - fstab.write(line + b'\n') + fstab = sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}').trace_log: + print(fstab) + with open(f"{self.mountpoint}/etc/fstab", 'ab') as fstab_fh: + fstab.write(fstab) 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}') |