ludovic.cour...@inria.fr (Ludovic Courtès) skribis: > The hack below allows ‘guix pack’ to produce wrappers that allow, > through user namespaces, programs to automatically relocate themselves > when you run them unprivileged on a machine that lacks Guix. In the > example below, I run ‘sed’ from a pack on a machine that lacks Guix: > > ludo@fencepost:~/tmp$ tar xf ../pack.tgz > ludo@fencepost:~/tmp$ echo hello > foo > ludo@fencepost:~/tmp$ > gnu/store/ffdzkyi23n8xh3n6vfqpa1lzg3xx9jpj-sed-4.4/bin/sed -i foo > -es/hello/bye/g > ludo@fencepost:~/tmp$ cat foo > bye > ludo@fencepost:~/tmp$ ls /gnu/store > ls: cannot access '/gnu/store': No such file or directory
You can watch the next episode of this season (and be part of it!) at <https://bugs.gnu.org/31360>. Ludo’.