Skip to content

Commit

Permalink
init: Implement support for Wolfi (#1192)
Browse files Browse the repository at this point in the history
* feat(init): Implement support for Wolfi

Signed-off-by: RJ Trujillo <[email protected]>

* chore(alpine/wolfi): Clean up dependencies list

Signed-off-by: RJ Trujillo <[email protected]>

* chore(wolfi): Remove sudo-rs

Rely on symlink from su-exec to sudo instead

* chore(alpine/wolfi): Ensure deps are set if determining base fails

---------

Signed-off-by: RJ Trujillo <[email protected]>
  • Loading branch information
EyeCantCU authored Feb 26, 2024
1 parent 22bc081 commit 58ffed3
Showing 1 changed file with 30 additions and 20 deletions.
50 changes: 30 additions & 20 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -415,63 +415,73 @@ if [ "${upgrade}" -ne 0 ] ||
if ! apk add "${shell_pkg}"; then
shell_pkg="bash"
fi
deps="
if apk add wolfi-base; then
deps="
busybox
gnutar
man-db
mesa
posix-libc-utils
"
elif apk add alpine-base; then
deps="
bash-completion
docs
gcompat
libc-utils
lsof
man-pages
mandoc
musl-utils
pinentry
sudo
tar
vte3
which
$(apk search -q mesa-dri)
$(apk search -q mesa-vulkan)
"
fi
deps="${deps:-}
${shell_pkg}
alpine-base
bash
bash-completion
bc
bzip2
coreutils
curl
diffutils
docs
findmnt
findutils
gcompat
gnupg
gpg
iproute2
iputils
keyutils
less
libc-utils
libcap
lsof
man-pages
mandoc
mount
musl-utils
ncurses
ncurses-terminfo
net-tools
openssh-client
pigz
pinentry
posix-libc-utils
procps
rsync
shadow
su-exec
sudo
tar
tcpdump
tree
tzdata
umount
unzip
util-linux
util-linux-misc
util-linux-login
vte3
util-linux-misc
vulkan-loader
wget
which
xauth
xz
zip
$(apk search -q mesa-dri)
$(apk search -q mesa-vulkan)
vulkan-loader
"
install_pkg=""
for dep in ${deps}; do
Expand Down

0 comments on commit 58ffed3

Please sign in to comment.