From a0ea05d9fee6467e7666353d60d07423cc2daed2 Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Mon, 30 Jul 2018 16:21:51 +0800 Subject: [PATCH 63/65] update fstab by appending The 'storage.write()' has updated fstab by overwriting the original one, we should update fstab by appending to keep original tmpfs partitions. Upstream-Status: Inappropriate [oe specific] Signed-off-by: Hongxu Jia --- pyanaconda/storage/osinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyanaconda/storage/osinstall.py b/pyanaconda/storage/osinstall.py index 6eb2f21..5160fee 100644 --- a/pyanaconda/storage/osinstall.py +++ b/pyanaconda/storage/osinstall.py @@ -832,7 +832,7 @@ class FSSet(object): # /etc/fstab fstab_path = os.path.normpath("%s/etc/fstab" % sysroot) fstab = self.fstab() - open(fstab_path, "w").write(fstab) + open(fstab_path, "a").write(fstab) # /etc/crypttab crypttab_path = os.path.normpath("%s/etc/crypttab" % sysroot) -- 2.7.4