Commit b9aab30a authored by anonym's avatar anonym

Use util-linux' mount/umount in initramfs used during shutdown.

When migrating to overlayfs we had issues with the overlay rw branch
not being wiped but switching mount/umount from BusyBox' to
util-linux' seems to bring the error rate from 10% to 0.5%.

Will-fix: #15146
parent 2289df21
......@@ -16,4 +16,10 @@ WORKDIR=$(/bin/mktemp -d)
/bin/mv "$WORKDIR"/main/* /run/initramfs/
# When migrating to overlayfs we had issues with the overlay rw branch
# not being wiped (#15146) but switching mount/umount from BusyBox' to
# util-linux' seems to bring the error rate from 10% to 0.5%.
rm /run/initramfs/usr/bin/mount /run/initramfs/usr/bin/umount
cp /bin/mount /bin/umount /run/initramfs/usr/bin/
/bin/rm -rf "$WORKDIR"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment