From 89424d9f735861540d52511cf8b06858d5381dcc Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 27 Jun 2023 23:35:36 +0200 Subject: [PATCH] add unmount loop --- usr/share/archboot/base/init | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/share/archboot/base/init b/usr/share/archboot/base/init index 4f6507b10..f99cff418 100755 --- a/usr/share/archboot/base/init +++ b/usr/share/archboot/base/init @@ -108,8 +108,11 @@ cd /sysroot || _emergency_shell bsdcpio -u -f "*/lib/modules/" -f "*/lib/firmware/" -i <"/mnt/boot/initramfs-$(uname -m).img" &>/dev/null || _emergency_shell # unmount everything after copying echo -e "\e[1mStep 7/7:\e[m Unmounting archboot rootfs..." -umount -q -A /dev/sr0 -umount -q -A UUID=1234-ABCD +while true; do + umount -q -A /dev/sr0 2>/dev/null && break + umount -q -A UUID=1234-ABCD 2>/dev/null && break + read -r -t 1 +done echo 0 > /proc/sys/kernel/sysrq # set font size in vconsole.conf echo FONT=ter-v${SIZE}n >> /sysroot/etc/vconsole.conf