From cb0cfd7e60571ef18cf163335cdde699fd87b614 Mon Sep 17 00:00:00 2001 From: Cameron Thompson <50184035+iamromulan@users.noreply.github.com> Date: Mon, 20 Jan 2025 15:15:20 -0500 Subject: [PATCH] Prevent mount-fix from being upgraded - Prevent the mount-fix package from being upgraded. --- ipk-source/sdxpinn-mount-fix/CONTROL/preinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipk-source/sdxpinn-mount-fix/CONTROL/preinst b/ipk-source/sdxpinn-mount-fix/CONTROL/preinst index cc3fe86..b1d16be 100755 --- a/ipk-source/sdxpinn-mount-fix/CONTROL/preinst +++ b/ipk-source/sdxpinn-mount-fix/CONTROL/preinst @@ -1,5 +1,11 @@ #!/bin/ash +if grep -qs '/real_rootfs' /proc/mounts; then + echo "This package is meant to be installed once after a clean flash." + echo "You should not upgrade or reinstall it. Flash first then run the toolkit otherwise." + exit 1 +fi + # Remount original rootfs as read-write echo "Mounting / as read-write" mount -o remount,rw /