-
Notifications
You must be signed in to change notification settings - Fork 502
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededhost-distro
Description
Describe the bug
distrobox-enter fails if location of distrobox-scripts changed on disk.
To Reproduce
This happened to me with Nix on Ubuntu when updating and the old distrobox version got GC'd from the nix store:
- Assume a
nix-enabled system - Get older distrobox:
nix-store -r /nix/store/hcn0gjbb8xpl717pdp2bamzjcmspz3rp-distrobox-1.2.15 - Create a box
/nix/store/hcn0gjbb8xpl717pdp2bamzjcmspz3rp-distrobox-1.2.15/bin/distrobox-create --name testbox --image ubuntu:20.04 - Enter box
/nix/store/hcn0gjbb8xpl717pdp2bamzjcmspz3rp-distrobox-1.2.15/bin/distrobox-enter testboxand leave again - works. - Stop box
/nix/store/hcn0gjbb8xpl717pdp2bamzjcmspz3rp-distrobox-1.2.15/bin/distrobox-stop testbox - Remove old distrobox:
nix-store --delete /nix/store/hcn0gjbb8xpl717pdp2bamzjcmspz3rp-distrobox-1.2.15 - Get newer distrobox:
nix-store -r /nix/store/7nsxw7jggd33hrcbclgm5v13xds90r8w-distrobox-1.3.0 - Try to enter box
/nix/store/7nsxw7jggd33hrcbclgm5v13xds90r8w-distrobox-1.3.0/bin/distrobox-enter testboxand observe reference to old version in failure message. - Get older distrobox again:
nix-store -r /nix/store/hcn0gjbb8xpl717pdp2bamzjcmspz3rp-distrobox-1.2.15 - Try to enter box
/nix/store/7nsxw7jggd33hrcbclgm5v13xds90r8w-distrobox-1.3.0/bin/distrobox-enter testboxand observe things work.
Expected behavior
Distrobox should map its own location to a static path inside the container. (Distrobox already has great Nix support!)
Logs
Podman logs do not provide any useful data.
Desktop (please complete the following information):
- Are you using podman or docker? Podman
- Which version or podman or docker? Podman 4.1.0 (
/nix/store/76hhw9w196lpwmkyzh4c526ax6sb19gs-podman-wrapper-4.1.0/bin/podman) - Which version of distrobox? 1.2.15 and 1.3.0, see above
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededhost-distro