systemboot
systemboot copied to clipboard
localboot should support booting to single-user mode
It's pretty complex to boot into single-user mode with localboot; you need to change the grub config to add init=/bin/bash - there should be a command line option to append something to the kernel command line to boot single user mode, no matter how the kernel/ramdisk are selected.
This should be doable by passing flagKernelCmdline to BootGrubMode and editing BootConfig.KernelArgs (from the pkg/bootconfig package)