Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-12-07 19:56:51 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-07 19:56:51 +0100
commitba863c341d9436b7dd2cc5b6904c4567baa76088 (patch)
tree74f0a5ca1cc950c09e0928916eff7b7a40a3e663 /archinstall/lib/installer.py
parent7097fb9ce3b2f36c15818b0a11960c8599c08fdf (diff)
fstab incorrectly updated since many version ago
Updated `genfstab()` to approprately generate a correct fstab for mounted filesystems used in `installation.mountpoint`.
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 8fde4168..6d3be605 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -118,9 +118,9 @@ class Installer():
def genfstab(self, flags='-pU'):
self.log(f"Updating {self.mountpoint}/etc/fstab", level=LOG_LEVELS.Info)
- print(f'/usr/bin/genfstab {flags} {self.mountpoint} >> {self.mountpoint}/etc/fstab')
- o = b''.join(sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint} >> {self.mountpoint}/etc/fstab'))
- print(o)
+ o = b''.join(sys_command(f'/usr/bin/genfstab {flags} {self.mountpoint}'))
+ with open(f"{self.mountpoint}/etc/fstab", 'a') as fstab:
+ fstab.write(f"\n{o.decode('UTF-8')}")
if not os.path.isfile(f'{self.mountpoint}/etc/fstab'):
raise RequirementError(f'Could not generate fstab, strapping in packages most likely failed (disk out of space?)\n{o}')