Set up /media and /mnt to match the host #330
Comments
|
I had the same issue after upgrading Silverblue. These were the packages included in the upgrade. It was fixed after rolling back.
|
|
Probably a new version of |
|
I have an old spare laptop I use for testing; it's running Silverblue Rawhide. Toolbox is working there on its most recent update (Rawhide.20191107.n.1), but it's between the F31 versions: So it seems something broke in crun between 0.10.4 and 0.10.5. Hopefully this helps to isolate the problem and either fix it in crun or podman... or work around or adapt to it in toolbox. However, I should note that podman in rawhide is at version Meanwhile, toolbox is on the same version in all the places, |
|
would you please share the output of |
make sure the the source path is resolved when checking the file type. regression introduced with b9a0f0b Closes: containers/toolbox#330 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
I've opened a PR to fix it in crun. In the meanwhile, you can workaround it with: diff --git a/toolbox b/toolbox
index a7433e1..6b443c7 100755
--- a/toolbox
+++ b/toolbox
@@ -987,7 +987,7 @@ create()
fi
if [ -d /run/media ] 2>&3; then
- run_media_path_bind="--volume /run/media:/run/media:rslave"
+ run_media_path_bind="--volume $(readlink -f /run/media):/run/media:rslave"
fi
echo "$base_toolbox_command: checking if /usr is mounted read-only or read-write" >&3 |
|
Thank you for the quick fix, @giuseppe!! |
|
I'm having a similar issue with /mnt
I just removed all the references to /mnt and /run/media in toolbox and that temporarily resolved the issue for me. |
|
@p1u3o just to be sure my fix addresses your issue, could you show me the output for |
|
@giuseppe I'm having the same issue. The output of |
|
If it's of any help I'm using XFS with SELinux set as permissive.
|
|
Same problem here. |
|
I can confirm downgrading crun on SB31 using latest updates will result in working toolbox containers. Running "31.20191115.0 (2019-11-15T01:59:08Z)" and performed these steps:
Maybe this is helpful to someone getting no work done on SB as main desktop without having working toolbox containers. I'm glad I found this post of @garrett which pointed me in this direction https://discussion.fedoraproject.org/t/toolbox-broken-again-crun-update-in-31-20191112-0/11369/8 |
|
@stephanmol Thank you, got toolbox working again. |
|
A few days later, the toolbox again is broken.
|
|
@aaronuurman I'm happily getting work done in containers on Silverblue right this very moment thanks to toolbox (and podman and crun). Hopefully it all works again for you too after an |
|
Should the override stay in place after running |
|
Thanks for sorting this out, @giuseppe ! |
|
It seems override stays in place after rpm-ostree upgrade, probably that's why I did a new override. |
|
FWIW, I did an The crun override wasn't showing, but I wanted to make sure it wasn't transparently there because it was the same version as what now ships in Silverblue. (I don't want to have some surprise in the future. |
On Silverblue /media is a symbolic link to /run/media. Matching what the host does will reduce weird side-effects. containers#330
|
Let me re-purpose this issue to improve our handling of |
On Silverblue /media is a symbolic link to /run/media. Matching what the host does will reduce weird side-effects. containers#330
Today I suddenly couldn't enter my toolbox, so I tried to recreate it again using
toolbox resetandtoolbox enterwith no luck. Here is the output oftoolbox -v enter:The text was updated successfully, but these errors were encountered: