feat: Add option to build image file non-interactively#258
feat: Add option to build image file non-interactively#258readefries wants to merge 2 commits intor0b0:masterfrom
Conversation
…r the root file system, so the new kernel also boots
47e06ab to
f74a536
Compare
|
@r0b0 I seem to be running into an issue where the package |
… with options to feed settings via environment variables
f74a536 to
6208d50
Compare
Hi, This might be bacause you switched from |
| cryptsetup luksUUID "${main_partition}" > luks.uuid | ||
| root_uuid=$(cat luks.uuid) | ||
| # Add LUKS parameters to kernel cmdline | ||
| kernel_params="rd.luks.uuid=${root_uuid} rd.luks.name=${root_uuid}=${luks_device_name} rd.luks.options=tpm2-device=auto root=${root_device} ${kernel_params}" |
There was a problem hiding this comment.
I think you can leave rd.luks.uuid out when you use rd.luks.name. No biggie, just reduces the number of options.
|
|
||
| ### Development Container | ||
|
|
||
| This repository includes a VS Code devcontainer in `.devcontainer/`. |
There was a problem hiding this comment.
This repository includes a VS Code devcontainer in
.devcontainer/.
What does this mean? Did you mean to commit the .devcontainer folder?
There was a problem hiding this comment.
Oops, I didn't want to check that in. I tested getting the building in a container, so all the dependencies wouldn't need to be installed on my machine. But I ran into issues connecting the loop devices to be able to work on the virtual image. I'll remove that from the changeset
| @@ -0,0 +1,3 @@ | |||
| # Build full initramfs with all drivers instead of host-only | |||
| # This ensures the initramfs works across different hardware configurations | |||
| hostonly="no" | |||
There was a problem hiding this comment.
There already is a hostonly="no" in 90-odin.conf
No, that doesn't change the result. The only reason I used apt-get, is that I now apt is not script safe. But I can just remove that. |
I wanted to be able to create disk images, so I updated the
make_image.shscript to support creating an image as an option, in addition to writing directly to a USB disk.This also includes an option to select which tasksel packages to install, so the installer can be non-interactive.