shithub: front

Download patch

ref: 6d374cd4e7c94526ea4fa7216f64eab5474956f4
parent: cd08541dd7b3cf41ebf42133ee6ac0fbd23a9c4a
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);
--