From 1d0179c4df4f92d1cbceb350a579e5d4163b0e66 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 15 May 2022 23:30:02 +0200 Subject: [PATCH] Made sure open() was using newline='\n' again --- archinstall/lib/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index b0f7ac32..4c75b1a4 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -389,7 +389,7 @@ class Installer: if not (fstab := SysCommand(f'/usr/bin/genfstab {flags} {self.target}')).exit_code == 0: raise RequirementError(f'Could not generate fstab, strapping in packages most likely failed (disk out of space?)\n Error: {fstab}') - with open(f"{self.target}/etc/fstab", 'a') as fstab_fh: + with open(f"{self.target}/etc/fstab", 'a', newline='\n') as fstab_fh: fstab_fh.write(fstab.decode()) if not os.path.isfile(f'{self.target}/etc/fstab'):