fix progress 100

This commit is contained in:
Tobias Powalowski 2023-08-02 16:24:59 +02:00
parent 8b6214f208
commit 01b9d7531e

View file

@ -111,12 +111,11 @@ _second_stage() {
umount -q -A UUID=1234-ABCD 2>/dev/null && break
read -r -t 1
done
_progress "98" "${_KEEP} Cleanup /sysroot..."
_progress "100" "The boot medium can be safely removed now."
read -r -t 2
# remove mkinitcpio files and directories
rm -rf /sysroot/{hooks,install,kernel,new_root,sysroot} &>/dev/null
rm -f /sysroot/{VERSION,config,buildconfig,init} &>/dev/null
_progress "100" "The boot medium can be safely removed now."
read -r -t 2
}
# mount kernel filesystems
mount -t proc proc /proc -o nosuid,noexec,nodev