Made sure open() was using newline='\n' again
This commit is contained in:
parent
a748f3fba0
commit
1d0179c4df
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Reference in New Issue