Preventing the init to mess with my NFS root and network

Managed it, finally. For the records, this is what i've done:

  1. Prevent the "80_mount_root" hook to be called (I just preventend the boot_hook_add to be executed, in the /lib/preinit/80_mount_root file)

  2. Prevent the "preinit_ip()" function from being called, by just placing a return at the top of the function, in the /lib/preinit/10_indicate_preinit file.

  3. Provide a default /etc/config/network, otherwise a bridge is created on the first boot, on the interface I used to connect my NFS Server and client.

With these two steps, the NFS root fs is not lost, and I'm happy :slight_smile:

I wish I had access to "high-level" configuration options that would allow me to avoid editing the preinit files by hand (what happens if the package is updated?), but, well, it works.

1 Like