From 89f78b4a875f500937a2430a22f263e1afc77d64 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Wed, 4 Sep 2024 11:53:25 -0400 Subject: [PATCH] Revert "cmdlib.sh: keep trying to remount after killall hack" This reverts commit 5e7638ff20fc37006f238b45bf4eb516982a8be5. --- src/cmdlib.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cmdlib.sh b/src/cmdlib.sh index bc5a07836b..8b5a5a65a8 100755 --- a/src/cmdlib.sh +++ b/src/cmdlib.sh @@ -762,10 +762,7 @@ if [ -n "\${cachedev}" ]; then # XXX: brutal workaround for https://github.com/coreos/coreos-assembler/issues/3848 killall rofiles-fuse || : /sbin/fstrim -v ${workdir}/cache - while ! mount -o remount,ro ${workdir}/cache; do - echo "failed to remount cache ro; retrying..." |& tee /dev/virtio-ports/cosa-cmdout - sleep 1 - done + mount -o remount,ro ${workdir}/cache fsfreeze -f ${workdir}/cache fsfreeze -u ${workdir}/cache umount ${workdir}/cache