On Sat, 13 Apr 2024 17:29:48 +0200
Martin Steigerwald <mar...@lichtvoll.de> wrote:

> Martin Steigerwald - 13.04.24, 15:05:41 CEST:
> > No PATH defined.
> > 
> > The script defines it. See line 8 in my changed script. However it
> > does not export it. Thus adding line 9 fixes the bug I reported:
> > 
> >   8 PATH=/sbin:/usr/sbin:/bin:/usr/bin
> >   9 export PATH
> > 
> > The network is configured just fine after adding that line.
> 
> Since configuring networking works on physical machines – I know for
> sure with Devuan 5 aka Daedalus and Devuan Ceres which was at a
> similar state Devuan Excalibur is currently – regarding the right fix
> the question remains:
> 
> What is different with the PATH in both cases and why?
> 
> Why is it empty inside the (unprivileged) Incus managed LXC
> container? Is it empty on the physical machine? I doubt it. But where
> does the difference come from? And anyway the PATH is being set in
> both stage 1 and stage 2 scripts, just not exported. So on a physical
> machine it appears that PATH is being exported before already. It
> might be exported before already on a container as well, albeit
> undefined / empty.

If I remember correctly, it's the kernel that sets environment for init;
and it's different even when it boots "statically" vs via initramfs as
the latter defines a lot of extra and unecessary stuff

> 
> In both cases /bin/sh points to /bin/dash. Both the VM with Excalibur
> and the physical host with Daedalus are usrmerge'd.
> 

Reply via email to