Minor tweaks

This commit is contained in:
Anton Hvornum 2020-12-07 20:33:09 +01:00
parent ada7a0515b
commit 5c8d24a329
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class Installer():
def genfstab(self, flags='-pU'): def genfstab(self, flags='-pU'):
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
print(fstab) print(fstab)
with open(f"{self.mountpoint}/etc/fstab", 'ab') as fstab_fh: with open(f"{self.mountpoint}/etc/fstab", 'ab') as fstab_fh:
fstab.write(fstab) fstab.write(fstab)