* init: massively speed up apt-get deps install
Similar to the previous apk optimization instead of checking each
package one by one instead grab the matching ones from "apt list" and
pass them directly over to "apt-get install".
This happens to start installing libvte-2.90-common on ubuntu:14.04
where libvte-2.9*-common doesn't match anything when given to apt*
commands directly.
On my end non-toolbox Ubuntu 22.04 and 14.04 images saw a setup time
reduction from ~68 and 80 seconds respectively to just ~44 seconds each!
* init: massively speed up pacman deps install
Also drop both the duplicate vte-common & redundant opengl-driver (mesa
is always picked as default provider) package entries, (once again)
avoid re-installing already up-to-date packages; on my end the setup
time for the non-toolbox arch image was reduced from ~19 seconds to ~13
seconds.
* init: massively speed up xbps deps install
On my end the setup time was reduced from ~25 seconds to ~19 seconds.
* fix(init): resolve issues with older apt versions
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
* docs: fix compatibility issue with debian buster backports
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
---------
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
* Add --hostname argument and DBX_CONTAINER_HOSTNAME env var
* Update usage/distrobox-create.md and useful_tips.md
* Refining error message when hostname is too long
The init-hook provided for creating a distrobox with the
the same hostname as its host has two typos:
- Command substitution wrapping `uname -n` suppressing stdout redirect
- trailing "`"
Using this init-hook as suggested causes build errors.
This fix corrects the suggested script by echoing the command
substitution and removing the trailing "`".
See issue #1164 for details.
Change user login to prevent issues with firefox segfaulting (IPC I/O) related errors. TODO: improve init wait depending on whether container has init or not.
Improved waiting for systemd to start system
Fix creation of systemd login sessions to prevent conflict across multiple active sessions.
some containers are not allowing passthrough of certain environment variables without explicitly passing them using sudo's --preserve-env flag
run podman exec command as root since some distros like suse or arch would ask for user password when using su to login even though the user has no password in /etc/shadow
fix pam_systemd not being checked for su on certain distros like suse or arch.
---------
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
There's a special distrobox-compatible flavor of openSUSE, see https://en.opensuse.org/Distrobox. This is configured as a default image when using distribution provided distrobox packages.