On Thu, Apr 13, 2023 at 04:43:39PM +0000, Mikolaj Kucharski wrote:
> I have an amd64 based cheap laptop, which has extremly slow I/O and even
> slower I/O in the installer. The result is, that fsck during upgrade,
> triggered via sysupgrade -s, takes ages. Basically makes upgrade
> non-usable.

Resetting the watchdog between fsck runs might help, can you try that?
 
> Would it be possible to bump it to 60 minutes?

We've deliberately lowered it from 60 to 30 minutes years ago, after the
the single timeout for the whole upgrade was split and made resettable.

Index: install.sub
===================================================================
RCS file: /cvs/src/distrib/miniroot/install.sub,v
retrieving revision 1.1241
diff -u -p -r1.1241 install.sub
--- install.sub 7 Apr 2023 13:48:42 -0000       1.1241
+++ install.sub 13 Apr 2023 17:13:05 -0000
@@ -2739,6 +2739,7 @@ check_fs() {
                else
                        echo " OK."
                fi
+               reset_watchdog
        done </etc/fstab
 
        [[ -n $_fail ]] && exit
@@ -3405,6 +3406,8 @@ do_upgrade() {
        fsck -fp /dev/$ROOTDEV >/dev/null 2>&1 || { echo "FAILED."; exit; }
        echo " OK."
 
+       reset_watchdog
+
        echo -n "Mounting root filesystem (mount -o ro /dev/$ROOTDEV /mnt)..."
        mount -o ro /dev/$ROOTDEV /mnt || { echo "FAILED."; exit; }
        echo " OK."

Reply via email to