commit: 8a24f11205f7be79b22d81936c0c7e628b74986c Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Mon Jul 29 18:20:42 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Mon Jul 29 20:02:21 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8a24f112
initrd.scripts: cleanup(): Don't bring down network interface when real_root=/dev/nfs At this stage we already have mounted root over network so we should not bring down the network interface. Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> defaults/initrd.scripts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index e01f461..4c8955d 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -2011,7 +2011,12 @@ cleanup() { if [ -f "${GK_NET_LOCKFILE}" ] then - kill_network + if [ "${REAL_ROOT}" = "/dev/nfs" ] + then + warn_msg "real_root=/dev/nfs; Will not bring down interface ${GK_NET_IFACE} ..." + else + kill_network + fi fi }