Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/
Date: Tue, 28 May 2019 01:49:56
Message-Id: 1559007904.ee2e8e8d65713760f85664bcb004e67aed8228d3.zmedico@gentoo
1 commit: ee2e8e8d65713760f85664bcb004e67aed8228d3
2 Author: i.Dark_Templar <darktemplar <AT> dark-templar-archives <DOT> net>
3 AuthorDate: Mon May 27 20:23:18 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 01:45:04 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ee2e8e8d
7
8 Don't modify /etc/mtab from temporary namespaces
9
10 These records are never removed and just pollute
11 /etc/mtab if that's a regular file.
12 And if /etc/mtab isn't a regular file,
13 then attempts to modify it are pointless.
14
15 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
16
17 lib/portage/process.py | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/lib/portage/process.py b/lib/portage/process.py
21 index 0dba55de3..dfbda75de 100644
22 --- a/lib/portage/process.py
23 +++ b/lib/portage/process.py
24 @@ -617,7 +617,7 @@ def _exec(binary, mycommand, opt_name, fd_pipes,
25 os._exit(1)
26 # mount new /proc for our namespace
27 s = subprocess.Popen(['mount',
28 - '-t', 'proc', 'proc', '/proc'])
29 + '-n', '-t', 'proc', 'proc', '/proc'])
30 mount_ret = s.wait()
31 if mount_ret != 0:
32 writemsg("Unable to mount new /proc: %d\n" % (mount_ret,),