mrrl-containers

MRRL version of container scripts
git clone https://ccx.te2000.cz/git/mrrl-containers
Log | Files | Refs

commit 89088b358c7bcaccd0c090d7a892574e0a4ccbe2
parent 2eaf37b90620a46c115e08ac00d301d4bb8ad740
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Thu, 11 Aug 2022 03:18:40 +0200

Remove leftover tmp_root prior to debootstrap
Diffstat:
Mzsh-functions/confz_containers_init | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/zsh-functions/confz_containers_init b/zsh-functions/confz_containers_init @@ -1281,6 +1281,9 @@ confz_container_debootstrap_check() { } confz_container_debootstrap_do() { local tmp_root=${vars[root]:h}/.debootstrap.${vars[root]:t} + if [[ -e $tmp_root ]]; then + rm -rf $tmp_root || return $? + fi $vars[debootstrap_executable] --variant=$vars[variant] \ $vars[suite] $tmp_root $vars[mirror] || return $? chown -R $vars[uid]:$vars[gid] $tmp_root || return $?