It lets us move the variables in cmdline.txt to
deviceinfo_kernel_cmdline. We can thereafter drop the cmdline.txt file
entirely.
By setting deviceinfo_generate_cmdline_txt we tell boot-deploy to
generate /boot/cmdline.txt from deviceinfo_kernel_cmdline. boot-deploy
can then also add information about partition UUIDs to the cmdline,
which helps postmarketos-initramfs find the correct partitions.
Fixes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3716
Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6630
[ci:skip-build]: already built successfully in CI
From my testing the different modules are roughly needed due to:
* Without the aes stuff unlock fails with
trusted_key: encrypted_key: failed to alloc_cipher (-2)
* Without i2c_brcmstb hdmi fails to come up due to
missing dependencies:
platform axi:gpu: deferred probe pending: (reason unknown)
* The sound stuff also seems to be a dependency of the drm hdmi driver
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6536
We are already passing a list of modules through the modules-initfs
file. By dropping modules from cmdline we silence this dmesg warning:
[ 0.000000] Unknown kernel command line parameters "modules=loop,squashfs,sd-mod,usb-storage", will be passed to user space.
Out of the listed modules, only squashfs is actually built as a module
by linux-rpi, so most of them do not make sense in any case.
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6536