Skip to content

Support for running commands in the installer #13

@bsiegert

Description

@bsiegert

As you probably know, I am using Anita in netbsd-gce.
The way the script works now, Anita is doing the installation, then the emulator boots into the newly installed system to do a few minor things. The only one that's absolutely necessary is to set a lower MTU for the vio network interface.

I would like to start a conversation on how to avoid that first boot, since it means that a number of first-boot scripts are run on the system. Notably, this means every instance created from one instance template has the same SSH host key, which is not great.

Do you think it would make sense to add support for running commands in the installer, i.e. dropping to a shell after the install and running some commands there? It would be simple to create /etc/ifconfig.vioif0 in that environment, for instance.

Alternatively, I could see a simpler workaround, such as removing the rc_configured variable from /etc/rc.conf after making modifications to the system, so that the first-boot script is run again.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions