Netinstall - any way to erase config before applying -s script option?

I am testing the running of a .rsc backup to a netinstalled device. The net install runs fine but I see errors on logging in because there is obviously already a bridge in the default config:

2025-04-13 13:09:41 system,error,critical error while running autorun.scr script: failure: already have interface with such name (/interface/bridge/add; line 7)

The Linux netinstall command will not let me use -e and -s together:

➜ sudo ./netinstall-cli -v -e -s backup-test.rsc -a 192.168.88.2 routeros-7.18.2-arm.npk wireless-7.18.2-arm.npk
Version: 7.18.2(2025-03-11 13:07:03)
Cannot apply empty config and script at the same time
./netinstall-cli [-r] [-e] [-b] [-o] [-k <keyfile>] [-s <userscript>] {-i <interface> | -a <client-ip>} [PACKAGE]+
	-r  apply default configuration
	-e  apply empty configuration
	    -r and -e are mutually exclusive
	    by default existing configuration will be kept
	-b  remove branding
	-o  install devices only once
	-v  verbose mode

This is the backup-test.rsc file down to line 7 where it fails:

backup-test.rsc
 # 2025-03-10 12:03:49 by RouterOS 7.18.2
 # software id = 00DD-BCGX
 #
 # model = RBD53iG-5HacD2HnD
 # serial number = HDJ08NXFTFM
 /interface bridge
 add admin-mac=48:A9:8A:1A:4E:EB auto-mac=no comment=defconf name=bridge

I know the device is not being erased because the user database remains after running the net install above.

A little more background. I am setting up a netinstall recovery box (amongst other admin stuff) for a remote device in another state. I have a seperate LTE connection to this linux box and can access if the Mikrotik device needs to be remotely netinstalled (with someone onsite to boot device into netbook mode).

I assume I could remote in and netinstall to factory, run the script below to erase and netinstall again to restore using my backup script (first post):

/system reset-configuration keep-users=yes no-defaults=yes

I think you need to see this.
http://forum.mikrotik.com/t/netinstall-how-to-run-custom-setup-script-without-default-configuration/182628/3
It’s being solved with the beta of netinstall-cli, if I understand your question right.

Thanks - didn’t find this while searching. This is spot on.

Hi, I’m very glad you solved the problem, but I and the forum would be so much happier
if you also mark your case in this forum as solved.

See the pictures below.
Where you click on the following places on the thread that solved your problem.

So the AI can take over and know what the problems are with the respective solution.

At board style: Canvas

At board style: prosilver

Done - I never knew what that little skinny box did until now. Tested and working fine.