Hi,
I was just installing OpenBSD on a Raspberry Pi 5 (arm64).
I wanted to use a USB HDD drive but it seems that U-Boot has a hard
time with it, so I decided to use a memory card (SD) to boot and the
idea was:

- Use the SD memory card <sd0> as the boot and root </> partition.
- Use the USB HDD <sd1> to create a RAID CRYPTO partition <sd2>.
- Use the RAID CRYPTO <sd2> partition for the rest of the partitions
(/tmp, /var, /usr, etc.)

(Why? Well, I can use the HDD for most of the things without writing
to the SD card, and I do not plan to have anything in need for
encryption in the root partition)

All good with the installation, but now the boot will not ask for the
passphrase of sd1 as the boot does not know about it.
Not a problem until rc(8) starts and fails as it will not find the
fstab partitions.

So, questions:

A- Is there a way that I haven't figured out to tell rc to create a
softraid before starting the fsck?

B- If not, I could (in my use-case) leave the default partitions
unencrypted and create a </crypted> partition to be mounted on a
<rc.local> script (calling bioctl and mount), for some reason this
feels... not nice. :) I would prefer to have fstab do the deal for me
if possible. Maybe there is a nicer method for mounting it?

C- Could I use sd0 only for the boot while asking for the passphrase
of sd1 (where the root </> resides)? I guess not as installboot will
only do the magic when sd1 is a RAID partition?

Thanks for the help, and sorry if duplicated, this is a mouthful to look up.

After figuring this out I expect to publish some notes on the
experience with OpenBSD @ RPi 5, it has been fun but it has some
tricks into it that I would like to share, so the next person does not
have as much fun as I did. :)
Elias.

Reply via email to