Skip to content

Commit

Permalink
init: proper fix for void extraction paths. Fix #1457
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Jun 27, 2024
1 parent 3365ff9 commit d717df3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,18 @@ EOF
fi
# Ensure we avoid errors by keeping xbps updated
xbps-install -Syu xbps
# We have to lock this package, as it's incompatible with distrobox's

# We have to lock this paths from xbps extraction, as it's incompatible with distrobox's
# mount process.
xbps-pkgdb -m repolock base-files runit-void
cat << EOF > /etc/xbps.d/distrobox-ignore.conf
noextract=/etc/passwd
noextract=/etc/hosts
noextract=/etc/host.conf
noextract=/etc/hostname
noextract=/etc/localtime
noextract=/etc/machine-id
noextract=/etc/resolv.conf
EOF
# 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.
Expand Down

0 comments on commit d717df3

Please sign in to comment.