Extroot not pivoting properly

so in trying to Extroot a unit but whenever it mounts everything pivots from the /rom not the root folder

Filesystem                Size      Used Available Use% Mounted on
rootfs                  109.4G    105.1M    103.7G   0% /
/dev/root                10.0M     10.0M         0 100% /rom/rom
tmpfs                   124.8M    216.0K    124.5M   0% /tmp
/dev/mtdblock7            8.6M      5.1M      3.5M  59% /rom/overlay
overlayfs:/overlay        8.6M      5.1M      3.5M  59% /rom
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               493.6M      1.1M    456.2M   0% /tmp/log/cmh
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /rom/storage
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /rom/etc/cmh-firmware
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /rom/etc/cmh-backup
/dev/mtdblock9            9.8M      9.8M         0 100% /rom/mios
/dev/sda2               109.4G    105.1M    103.7G   0% /overlay
overlayfs:/overlay      109.4G    105.1M    103.7G   0% /

what the original file system looks like

rootfs                    8.6M      5.2M      3.5M  60% /
/dev/root                10.0M     10.0M         0 100% /rom
tmpfs                   124.8M    580.0K    124.2M   0% /tmp
/dev/mtdblock7            8.6M      5.2M      3.5M  60% /overlay
overlayfs:/overlay        8.6M      5.2M      3.5M  60% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /storage
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /etc/cmh-firmware
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /etc/cmh-backup
/dev/mtdblock9            9.8M      9.8M         0 100% /mios

Details of your script would help.

You will end up with overlay2, overlay, ROM as the root file system. The first overlay effectively can’t be unmounted without going through some seriously crazy stuff.

https://openwrt.org/docs/guide-user/additional-software/extroot_configuration
Reboot the router, collect the following data and post here:

logread
block info
uci show fstab

fstab

config global
	option anon_swap '0'
	option anon_mount '1'
	option auto_swap '1'
	option auto_mount '1'
	option check_fs '0'
	option delay_root '20'

config global 'automount'
	option from_fstab '0'
	option anon_mount '0'

config global 'autoswap'
	option from_fstab '0'
	option anon_swap '0'

config mount
	option enabled '1'
	option enabled_fdisk '1'
	option enabled_mkfs '1'
	option label 'mios'
	option fssize '512'
	option fsck_days '30'
	option fsck_mounts '10'
	option target '/'
	option device '/dev/sda2'
	option fstype 'ext4'
	option options 'rw,sync'
	option enabled_fsck '0'

config mount
	option enabled '1'
	option target '/tmp/log/cmh'
	option fstype 'ext3'
	option options 'rw,noatime,nodiratime,errors=continue,data=ordered'
	option enabled_fdisk '1'
	option enabled_mkfs '1'
	option enabled_fsck '1'
	option label 'mios'
	option fssize '512'
	option fsck_days '30'
	option fsck_mounts '10'
	option device '/dev/sda1'

config mount
	option target '/mnt/mmcblk*'
	option enabled '1'

config mount 'overlay'
	option uuid '6f978070-8552-43c2-bf74-2966ccef7fc3'
	option target '/overlay'
	option  enabled '1'
# block info
/dev/mtdblock6: UUID="7da747e6-4ed89c8d-0dc86410-f064d4b6" VERSION="1024.0" TYPE="squashfs"
/dev/mtdblock9: UUID="c82ec6c0-834b904c-3543ccdc-032a1b86" VERSION="1024.0" TYPE="squashfs"
/dev/sda1: UUID="58643702-79db-4a51-9e1d-a705d9d296c5" LABEL="MiOS" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext3"
/dev/sda2: UUID="6f978070-8552-43c2-bf74-2966ccef7fc3" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"

the unit actually was bricked while i was messing with it