Re: /rescue/tar needing liblzma.so.2
> if /rescue/tar is going to run gzip as a subprocess, it should have > the full path /rescue/gzip (or gzcat or whatever) baked in so > its behaviour doesn't depend on PATH. Yes, that looks lihe TRT to me.
Re: /rescue/tar needing liblzma.so.2
Seems to me if /rescue/tar is going to run gzip as a subprocess, it should have the full path /rescue/gzip (or gzcat or whatever) baked in so its behaviour doesn't depend on PATH.
Re: /rescue/tar needing liblzma.so.2
> Fortunately, I could /rescue/gzcat base.tgz >base.tar and tar x that I also couldn‘t /rescue/gunzip base.tgz. Why?
Re: /rescue/tar needing liblzma.so.2
On Mon, 4 Jul 2022, Martin Husemann wrote: On Mon, Jul 04, 2022 at 06:58:39PM +, Emmanuel Dreyfus wrote: On Mon, Jul 04, 2022 at 08:32:02PM +0200, Martin Husemann wrote: Try with PATH=/rescue, that should avoid the issue. Shouldn't /rescue binaries have /rescue prepended to their PATH? Tricky - isn't that too much magic? Yeah, too much magic indeed. We could have the /rescue/sh default to /rescue/.profile or something and arrange good "rescue defaults" there. That sounds like it should be workable. ++--+--+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses:| | (Retired) | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com| | Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org | | & Network Engineer | | pgoyett...@gmail.com | ++--+--+
Re: /rescue/tar needing liblzma.so.2
On Mon, Jul 04, 2022 at 06:58:39PM +, Emmanuel Dreyfus wrote: > On Mon, Jul 04, 2022 at 08:32:02PM +0200, Martin Husemann wrote: > > Try with PATH=/rescue, that should avoid the issue. > > Shouldn't /rescue binaries have /rescue prepended to their PATH? Tricky - isn't that too much magic? We could have the /rescue/sh default to /rescue/.profile or something and arrange good "rescue defaults" there. Martin
Re: /rescue/tar needing liblzma.so.2
On Mon, Jul 04, 2022 at 08:32:02PM +0200, Martin Husemann wrote: > Try with PATH=/rescue, that should avoid the issue. Shouldn't /rescue binaries have /rescue prepended to their PATH? -- Emmanuel Dreyfus m...@netbsd.org
Re: /rescue/tar needing liblzma.so.2
On Mon, Jul 04, 2022 at 07:43:41PM +0200, Edgar Fuß wrote: > So why does something in /rescue need a shared library? It doesn't, but it exec's gzip via $PATH and finds /usr/bin/gzip - and that needs /usr/lib/liblzma.so.2. Try with PATH=/rescue, that should avoid the issue. Martin
/rescue/tar needing liblzma.so.2
I nearly locked myself out updating a server (from -6 to -8). I booted the new kernel (single user), mounted /usr, /var and /tmp, extracted base.tgz (excluding /rescue, fortunately), but had forgotten to remount / rw. After that (I interrupted tar), tar didn't work any more. Well, I had /rescue/tar. Unfortunately, with z, it said Shared object "liblzma.so.2" not found Fortunately, I could /rescue/gzcat base.tgz >base.tar and tar x that. So why does something in /rescue need a shared library?