-
Notifications
You must be signed in to change notification settings - Fork 5
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
some nice features and maybe fixes :) #11
Comments
Thanks for the feedback. The SSH port and dropbear options fixes look good. However, running I'm not sure I understood your last point. The script already uses the official Armbian images and writes the modified image directly to the SD or eMMC card. |
Okay, it's a good idea with the possible shell. Didn't think of that :) For the second part:
I have built an image/sd card on an orange pi 4 lts directly, because those notes sounds like it's a bad idea to user different hardware. My idea was to use docker or podman for the building process, to be not bound to any hw specs at all (qemu in docker could be used for different archs too). Maybe that could even work without containers. But I have to take a closer look at your script. Just did a brief fly-over. So far, thanks for your awesome work! |
Oh, now I get it. Interesting idea, but this would take oodles of work, and I'm not sure how useful it would be for users: presumably, if someone wants to build an image for a specific board, that means they already have access to the board. In addition, it would be difficult to precisely emulate the specs of the target hardware using a container or VM, I think. Thanks for identifying your hardware. Okay to add the Orange Pi 4 Ubuntu image to the supported list then? |
Hello again, sorry for the delay! Could be a lot of work, but a fun project too. Emulating every hw aspect is impossible, that's right, but arch and ram size (like stated by you in the docs) can be emulated. When I have more time I'll test this. I have used the Armbian_23.02.2_Orangepi4-lts_bullseye_current_5.15.93_minimal.img. So far everything works like a charm. |
Hello there,
Your little script works wonderfully!
But I have some things to say:
At first, it would be nice to choose the ssh port manually. Yeah, I can change it in the script itself, but it would be nice to choose it in the cli.
the second thing is you don't need any unlocking hook for initramfs, imo it's just unnecessary bloat.
you can use the authorized_keys for that, it looks like this:
no-port-forwarding,no-agent-forwarding,no-x11-forwarding,command="/bin/cryptroot-unlock" ssh-pub-key
The dropbear options can be hardened too:
DROPBEAR_OPTIONS=-p xyz -s -j -k -I 300
another idea was too rebuild the script so it uses the official armbian images of supported devices and creates a new image with luks encryption enabled or directly write it to a sd. I hate the dependence on using the hardware itself. I know there's armbian-build but so far most of the self-built images, even without luks, don't work.
Hope you can implement some of that, I could help if you want.
Kind regards,
derlocke
The text was updated successfully, but these errors were encountered: