add progressbar on grub

This commit is contained in:
Tobias Powalowski 2023-08-06 14:51:51 +02:00
parent 39c4c93a99
commit 33d8d7e812

View file

@ -774,7 +774,6 @@ _grub_install_bios() {
# freeze and unfreeze xfs filesystems to enable grub(2) installation on xfs filesystems # freeze and unfreeze xfs filesystems to enable grub(2) installation on xfs filesystems
_freeze_xfs _freeze_xfs
_chroot_mount _chroot_mount
sleep 2
chroot "${_DESTDIR}" grub-install \ chroot "${_DESTDIR}" grub-install \
--directory="/usr/lib/grub/i386-pc" \ --directory="/usr/lib/grub/i386-pc" \
--target="i386-pc" \ --target="i386-pc" \
@ -788,7 +787,7 @@ _grub_install_bios() {
} }
_grub_bios() { _grub_bios() {
touch ./archboot touch /.archboot
_grub_install_bios & _grub_install_bios &
_progress_wait "11" "99" "Setting up GRUB(2) BIOS..." "0.1" _progress_wait "11" "99" "Setting up GRUB(2) BIOS..." "0.1"
_progress "100" "Setting up GRUB(2) BIOS completed." _progress "100" "Setting up GRUB(2) BIOS completed."