Copy debootstrap.log on failure
This commit is contained in:
parent
d562f2a35b
commit
f9d44edb72
1 changed files with 4 additions and 2 deletions
|
@ -21,8 +21,10 @@ bootstrap(){
|
||||||
|
|
||||||
setarch linux32 capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
|
setarch linux32 capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
|
||||||
|
|
||||||
if [ -d "$2/debootstrap" ]; then
|
if [ -d "$2/debootstrap" ] && ! rmdir "$2/debootstrap"; then
|
||||||
rmdir "$2/debootstrap"
|
cp "$2/debootstrap/debootstrap.log" "${STAGE_WORK_DIR}"
|
||||||
|
log "bootstrap failed: please check ${STAGE_WORK_DIR}/debootstrap.log"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f bootstrap
|
export -f bootstrap
|
||||||
|
|
Loading…
Reference in a new issue