git: 9front

Download patch

ref: 249378398ed9a5d0a605d011566d8aebd749aeac
parent: c54a9ed70b6ebc5c8b7172713c0456c1ccd66615
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Aug 21 09:51:33 EDT 2025

kernel: fix bind order for /env (#e vs #ec)

We want #ec mounted *AFTER* #e so that
updating variables from rc end up in #e
and dont change the original kernel env.

--- a/sys/src/9/port/initcode.c
+++ b/sys/src/9/port/initcode.c
@@ -30,8 +30,8 @@
 
 	bind(c, dev, MAFTER);
 	bind(d, fd, MREPL);
+	bind(e, env, MREPL|MCREATE);
 	bind(ec, env, MAFTER);
-	bind(e, env, MCREATE|MAFTER);
 	bind(p, proc, MREPL);
 	bind(s, srv, MREPL|MCREATE);
 	bind(σ, shr, MREPL);
--