Update: sdxpinn-mount-fix 1.0.11 RC

-Improved stopping mount-fix
     - Now restores stock filesystem completely when stopped.
     - / is still rw after but a reboot or setting it to ro will make it be read only again

- Improved echo and comments
This commit is contained in:
iamromulan
2024-10-05 21:05:36 -04:00
parent b7b8bb2838
commit 3a35becca8
4 changed files with 20 additions and 6 deletions

View File

@@ -124,6 +124,18 @@ stop() {
/bin/echo "Reverted pivot_root" >> /tmp/mount-fix.log
/bin/echo "Previous root overlay available at /rootfs" >> /tmp/mount-fix.log
# Unmount /rootfs overlay
/bin/umount -lf /rootfs >/dev/null 2>&1
# Mount the location of etc-upper back
mount -t ubifs /dev/ubi0_3 /overlay
# Mount the old overlay filesystem back for etc
/bin/mount -t overlay overlay -o lowerdir=/etc,upperdir=/overlay/etc-upper,workdir=/overlay/.etc-work /etc >> /tmp/mount-fix.log
echo -e "\e[31m / is read-write right now. Be careful\e[0m"
echo -e "\e[31m Reboot or run mount -o remount,ro / \e[0m"
}
restart() {