/rw/config/rc.local.d/*.rc - scripts run at VM startup just before /rw/config/rc.local
After creating this directory and placing (executable) test scripts there, without success, a little digging suggested that this setup requires installing the qubes-core-agent-linux package. However, this package is missing from the qubes repositories and appears to conflict with qubes-core-agent.
apt-cache show qubes-core-agent
Package: qubes-core-agent
Version: 4.2.42-1+deb12u1 ...
Conflicts: qubes-core-agent-linux
So I’m left wondering, is this really possible in r4.2? If so, how should one go about setting it up?
/rw/config/rc.local-early.d/*.rc, /rw/config/rc.local-early - scripts similar to /rw/config/rc.local, but running earlier in the system startup sequence - just before sysinit.target, and setting up the network.
I already tried in a different qube, with the same result. But now that I know it’s possible I’ll keep digging to see if I can identify the problem. The permissions and ownership of my test.rc are identical to yours…
I was able to successfully replicate your test! So the problem appears to be with trying to automatically run a script that creates a new file in the directory. Running my script manually created the file abc.txt, but this file was not created automatically when restarting the qube.
Since the script is run by root and you didn’t specify a path for the file, I would guess that it’s in the root (/) directory. Have you checked there?