blob: 4f343b7d83166f4fd9f31e83ba100f7d838b8098 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 386ff899763f8473eb93a7a1578fb7cc4f86f66d Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 8 May 2017 16:28:12 +0800
4Subject: [PATCH 05/13] update fstab by appending
5
6The 'storage.write()' has updated fstab by overwriting
7the original one, we should update fstab by appending
8to keep original tmpfs partitions.
9
10Upstream-Status: Inappropriate [oe specific]
11
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13---
14 blivet/osinstall.py | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/blivet/osinstall.py b/blivet/osinstall.py
18index 61819c2..afa82db 100644
19--- a/blivet/osinstall.py
20+++ b/blivet/osinstall.py
21@@ -728,7 +728,7 @@ class FSSet(object):
22 # /etc/fstab
23 fstab_path = os.path.normpath("%s/etc/fstab" % get_sysroot())
24 fstab = self.fstab()
25- open(fstab_path, "w").write(fstab)
26+ open(fstab_path, "a").write(fstab)
27
28 # /etc/crypttab
29 crypttab_path = os.path.normpath("%s/etc/crypttab" % get_sysroot())
30--
312.7.4
32