Fix newline issue on fstab writes
Forced the newline char fstab writes as Python appears to be selecting the incorrect newlines
This commit is contained in:
parent
e103f2bc02
commit
275e60e1dd
|
|
@ -147,7 +147,7 @@ class Installer():
|
||||||
self.log(f"Updating {self.mountpoint}/etc/fstab", level=LOG_LEVELS.Info)
|
self.log(f"Updating {self.mountpoint}/etc/fstab", level=LOG_LEVELS.Info)
|
||||||
|
|
||||||
fstab = sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}').trace_log
|
fstab = sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}').trace_log
|
||||||
with open(f"{self.mountpoint}/etc/fstab", 'ab') as fstab_fh:
|
with open(f"{self.mountpoint}/etc/fstab", 'ab',newline='\n') as fstab_fh:
|
||||||
fstab_fh.write(fstab)
|
fstab_fh.write(fstab)
|
||||||
|
|
||||||
if not os.path.isfile(f'{self.mountpoint}/etc/fstab'):
|
if not os.path.isfile(f'{self.mountpoint}/etc/fstab'):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue