mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
init: add support for microdnf, support ubi8 and ubi7 minimal. Fix #254
This commit is contained in:
@@ -279,6 +279,25 @@ if ! command -v find || ! command -v mount || ! command -v passwd ||
|
||||
util-linux \
|
||||
vte-profile
|
||||
|
||||
elif command -v microdnf; then
|
||||
# Check if shell_pkg is available in distro's repo. If not we
|
||||
# fall back to bash, and we set the SHELL variable to bash so
|
||||
# that it is set up correctly for the user.
|
||||
if ! microdnf install -y "${shell_pkg}"; then
|
||||
SHELL="/bin/bash"
|
||||
shell_pkg="bash"
|
||||
fi
|
||||
microdnf install -y \
|
||||
"${shell_pkg}" \
|
||||
findutils \
|
||||
ncurses \
|
||||
passwd \
|
||||
procps \
|
||||
shadow-utils \
|
||||
sudo \
|
||||
util-linux
|
||||
# vte-profile
|
||||
|
||||
elif command -v pacman; then
|
||||
# Check if shell_pkg is available in distro's repo. If not we
|
||||
# fall back to bash, and we set the SHELL variable to bash so
|
||||
|
||||
@@ -115,7 +115,7 @@ Distrobox guests tested successfully with the following container images:
|
||||
| ClearLinux | | docker.io/library/clearlinux:latest<br>docker.io/library/clearlinux:base |
|
||||
| CentOS | 7 | quay.io/centos/centos:7 |
|
||||
| CentOS Stream | 8<br>9 | quay.io/centos/centos:stream8<br>quay.io/centos/centos:stream9 |
|
||||
| RedHat (UBI) | 7<br>8 | registry.access.redhat.com/ubi7/ubi<br>registry.access.redhat.com/ubi7/ubi-init<br>registry.access.redhat.com/ubi8/ubi<br>registry.access.redhat.com/ubi8/ubi-init |
|
||||
| RedHat (UBI) | 7<br>8 | registry.access.redhat.com/ubi7/ubi<br>registry.access.redhat.com/ubi7/ubi-init<br>registry.access.redhat.com/ubi7/ubi-minimal<br>registry.access.redhat.com/ubi8/ubi<br>registry.access.redhat.com/ubi8/ubi-init<br>registry.access.redhat.com/ubi8/ubi-minimal |
|
||||
| Debian | 7<br>8<br>9<br>10<br>11 | docker.io/debian/eol:wheezy<br>docker.io/library/debian:8<br>docker.io/library/debian:9<br>docker.io/library/debian:10<br>docker.io/library/debian:stable<br>docker.io/library/debian:stable-backports |
|
||||
| Debian | Testing | docker.io/library/debian:testing <br> docker.io/library/debian:testing-backports |
|
||||
| Debian | Unstable | docker.io/library/debian:unstable |
|
||||
|
||||
Reference in New Issue
Block a user