There are 3 possible ways to implement this:
- A non-volatile way to configure core. This is the ideal implementation, but it requires a non-volatile storage which is unknown (since we're trying to configure it).
- Configure core once after boot, and just let it be stored in the core header.
- Pass the disk on each operation.
For the latter two options, the CLI would need to configure core at least once per boot. So maybe also implement some non-volatile configuration system for the CLI itself (i.e. something along a /etc/switchos/config config file) that stores the required information.
Also be able to list all the available disks.