Fydeos local updates

I made a script for local updates but it’s missing. I want developers to help.
The command installs fine but doesn’t work when I want to boot from root B partition
The script works like this.
It links the FydeOS_for_PC_v16.0-stable.img file to the loop 3 section. Then install on root B partition
Necessary tools and script are attached.
sudo mount -o remount,rw / to get it working
sudo chmod 0755 ~/Downloads/updater.sh
sudo bash ~/Downloads/updater.sh
sudo cp ~/Downloads/pv /usr/sbin/
sudo chmod 0755 /usr/sbin/pv
sudo /usr/sbin/chromeos-update -r (FydeOS recovery image path)
updater.sh (1.7 KB)
pv (66.9 KB)