add progress to initramfs collecting

This commit is contained in:
Tobias Powalowski 2023-08-03 09:04:04 +02:00
parent 0e481aa839
commit 5a2bd78e4f

View file

@ -184,7 +184,7 @@ _new_environment() {
(_create_container &) (_create_container &)
sleep 1 sleep 1
while [[ -e "${_W_DIR}/.archboot" ]]; do while [[ -e "${_W_DIR}/.archboot" ]]; do
if [[ "${_COUNT}" -gt 2 && "${_COUNT}" -lt 49 ]]; then if [[ "${_COUNT}" -lt 49 ]]; then
_progress "$((_COUNT))" "Generating container in ${_W_DIR}..." _progress "$((_COUNT))" "Generating container in ${_W_DIR}..."
fi fi
if [[ "${_COUNT}" -gt 49 ]]; then if [[ "${_COUNT}" -gt 49 ]]; then
@ -212,7 +212,7 @@ _new_environment() {
rm "${_W_DIR}"/.archboot &) rm "${_W_DIR}"/.archboot &)
_COUNT=52 _COUNT=52
while [[ -e "${_W_DIR}/.archboot" ]]; do while [[ -e "${_W_DIR}/.archboot" ]]; do
if [[ "${_COUNT}" -gt 52 && "${_COUNT}" -lt 69 ]]; then if [[ "${_COUNT}" -lt 69 ]]; then
_progress "$((_COUNT))" "Collecting rootfs files in ${_W_DIR}..." _progress "$((_COUNT))" "Collecting rootfs files in ${_W_DIR}..."
fi fi
if [[ "${_COUNT}" -gt 69 ]]; then if [[ "${_COUNT}" -gt 69 ]]; then