-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some openSUSE improvement #262
Conversation
Hi @dfaggioli thanks for the PR! I was thinking, would it be better to default to something more generic like
The upside would be easier documentation (one var for all distros) and we can use it to unminimize also Ubuntu Debian and Fedora (which I can add later after this PR ) 👍 |
6a70d6e
to
4a46217
Compare
Mmm... interesting, on openSUSE, something is now trying to install The most of the dependencies come from vte, and the packages are installed before marking /dev as a net-share. But we can't move all the package handling after that, because we need some of those packages there very early. I can try to split packages installation in two steps. The second one (which for know would only contain vte packages, but I guess other packages, in future, may need the same treatment) will happen later, after mounts have been marked. |
Nope, I've just tested this, and it still does not work. The only solution I'm seeing right now, is to lock out the If anyone see a better solution, I'm all ears :-D |
Ok, I can do that. One question: do I keep the Or shall I just drop the |
I think droppint INIT is fine, after this I think I'll make it also a command line flag ( |
Doubt that we need parallel printer in a container 🤔 so maybe blocking it is ok I guess |
Hey, me again, and sorry for bothering. I was back working on this, and I can't convince myself to like "unminimize", mostly because of the "inverted logic". How about we call it something like DBX_CONTAINER_MINIMIZE or DBX_CONTAINER_MINIMAL_IMAGE ? Then, for openSUSE, I'd just set It seems to me that this could work well also for other distros. In fact, AFAICT, Fedora installs soft dependency by default already, so one could just handle it in a similar way... That said, if doing things this way is, for some reason that I don't see, unideal, or if you don't like, I'll go for UNMINIMIZE... Just let me know. :-) |
I was thinking the same to be honest 😄 So maybe, without bothering to check variables, just unminimize it? |
:-)
Totally agree!
You mean we just get rid of it entirely? |
The variable yes, we can just add the de-minimization inside the |
I'd put the conf manipulation just before the |
systemd may not be part (and, as a matter of fact, it's not!) of the container image. Which means that a distrobox created with '--init' will never work. Add it there. Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
@dfaggioli
That also is really useful to unminimize 👍 |
c7b2de0
to
3e729c6
Compare
Heh, we indeed do that as well (at least for Tumbleweed images... but not for toolbox images): |
In openSUSE images, zypper is usually configured to ignore recommended packages (i.e., weak dependencies). This is one of the reasons why images are small, and also why only an handful of packages are installed in the distrobox, during init. However, this also means that quite a few things (e.g., GUI apps) may not work out-of-the-box for users, and that more packages would need to be installed (and it's often not super easy to tell which ones!). Note also that recommended packages are enabled by default in "regular" openSUSE/SUSE installs, so having them enabled in the distrobox as well, is most likely what distrobox users expects. Let's, therefore, enable them. This makes the initialization of the dbox (i.e., the first `distrobox enter`) a bit slow, as much more packages will be installed (and zypper is not really something one can call fast!), but the improved user experience is worth it. For the same reason, let's also make sure that we install the docs files of the RPM packages. A small side effect is that, on certain image, a package that does not install properly when inside rootless podman could be pulled in. Since that is parallel-printer-support, which we'll never going to need inside a distrobox, we can just lock it out. Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
Cool all green now 😄 merging! |
This pull request does the following:
About 2 and 3, the first
enter
in a distrobox with is now quite a bit slower (because zypper is quite slow itself :-( ), but I think it's worth it. In fact, the resulting distrobox is now actually useful. E.g., GUI apps (but also non-GUI apps, as even just vim has problem withou recommended packages!) now works pretty much out of the box, once installed.For comparison, I've created a Tumbleweed based distrobox, installed neofetch, vim and gedit, and it has ~600 packages. I've done the same on a rawhide one, and it has a little less than 500. So I think, all in all, it's fine, and well worth it.