How to use rc.local-early in Qubes 4.2 revisions

Go back to topic: How to use rc.local-early in Qubes 4.2

  1. v3 anchor; v3 full version
  2. v2 anchor; v2 full version

Revision #3

Edited on
2025-05-20
Edited by user
likeafox
Even though it is [described in QubesOS's live documentation](https://www.qubes-os.org/doc/config-files/#qubes-specific-vm-config-files), `rc.local-early` is not available in QubesOS's current release at time of writing (that being version 4.2-- and it remains to be seen if it will be backported to 4.2 in at some point). Even though it is [described in QubesOS's live documentation](https://www.qubes-os.org/doc/config-files/#qubes-specific-vm-config-files), `rc.local-early` is not available in QubesOS's current release at time of writing (that being version 4.2-- and it remains to be seen if it will be backported to 4.2 at some point).

Revision #2

Edited on
2025-05-19
Edited by user
likeafox
# undo bind mount
# run rc.local-early scripts, but only if the original qubes-early-vm.config.sh # script doesn't provide this functionality
# this clause not strictly necessary but can avoid some foot-shooting # with certain misconfigurations [ `findmnt -n -o MAJ:MIN -T "$EARLY_SH"` = `findmnt -n -o MAJ:MIN -T /` ] || { echo "file resides on unexpected block device: $EARLY_SH" >&2 exit 1 } # run original script (that the current one replaced)