This commit is contained in:
teldra 2022-02-08 21:09:56 +01:00
parent e4ffcf1167
commit 7ecbb47105
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ err() {
}
header() {
if [ "$DEBUG" ]; then
if [ "$DEBUG" == "1" ]; then
echo please enter enter
read
fi

View File

@ -10,7 +10,7 @@ tmp_target="${main}/tmp_target"
vars="${target}/tmp/vinstaller/vars"
files="./files"
if [ "${DEBUG}" ]; then
if [ "${DEBUG}" == "1" ]; then
umount -R ${target}/boot/efi ${target}/boot ${target}/tmp/vinstaller/ ${target}/home ${target}
vgchange -an
cryptsetup close /dev/mapper/luks*
@ -235,7 +235,7 @@ do_install() {
for i in "${ignorepkgs[@]}"; do
echo "ignorepkg=${i}" >> "${target}/etc/xbps.d/10-ignore-pkg.conf"
done
if [ "${DEBUG}" ]; then
if [ "${DEBUG}" == "1" ]; then
xbps-install -S -R https://alpha.de.repo.voidlinux.org/current -r "${target}" "${pkgs[@]}"
else
xbps-install -Sy -R https://alpha.de.repo.voidlinux.org/current -r "${target}" "${pkgs[@]}"