From b87c41e92ff2d54f52c1ae06265949524cb114f5 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Sun, 10 Mar 2024 10:19:22 -0400 Subject: Fix fstab line endings (#2400) --- archinstall/lib/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archinstall/lib/installer.py') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 41113899..d5ea889b 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -362,12 +362,12 @@ class Installer: info(f"Updating {fstab_path}") try: - gen_fstab = SysCommand(f'/usr/bin/genfstab {flags} {self.target}').decode() + gen_fstab = SysCommand(f'/usr/bin/genfstab {flags} {self.target}').output() except SysCallError as err: raise RequirementError( f'Could not generate fstab, strapping in packages most likely failed (disk out of space?)\n Error: {err}') - with open(fstab_path, 'a') as fp: + with open(fstab_path, 'ab') as fp: fp.write(gen_fstab) if not fstab_path.is_file(): -- cgit v1.2.3-70-g09d2