Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dualboot instructions from NixOS #26

Open
mikenrafter opened this issue Mar 13, 2024 · 2 comments
Open

Dualboot instructions from NixOS #26

mikenrafter opened this issue Mar 13, 2024 · 2 comments

Comments

@mikenrafter
Copy link

I'm unsure if it's possible, but I'd like to be able to dualboot this from my NixOS box easily. This project has the potential to be the most approachable & safe avenue for many to experiment with BSD-based distributions. Including some instructions on how to do this in the README would be much appreciated.

@rhelmot
Copy link
Collaborator

rhelmot commented Mar 13, 2024

I would do some experiments in a VM before committing anything to disk but given that we are doing EFI boot, it should be pretty painless. I don't think that our bootloader has or ever will have the ability to boot other operating systems, but it should work just fine as an EFI target for other bootloaders or even your firmware's picker.

I'll see about doing some experiments and putting instructions in the README soon :)

@artemist
Copy link
Member

Installing is interesting now because we currently only have the tools to make a VM image with boots with UEFI. We don't currently build a BIOS bootloader or support installing stand-efi to locations other than bootx64.efi

It is possible to install on real hardware, but it's a fairly manual process. You have to:

  • build the extra.systemImage output, which contains a qcow2 image
  • convert the qcow2 image to raw with qemu-img
  • Write the raw image to a flash drive
  • Boot a machine from the flash drive
  • Manually partition the drive with gpart
  • Format the rootfs ane UEFI partition (I haven't tested zfs, UFS works at least)
  • Create a hardware-configuration.nix (we don't have nixos-generage-config so it should be something like mine)
  • Do the normal nixos-install process from there

We should document this, but I'd like a somewhat less manual process before putting it so front-and-center

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants