On Wed, 2022-03-30 at 12:38 +0200, Arnaud Ferraris wrote: > + automatically resize the root fs (including LUKS-encrypted > partitions) on first boot This is something that also needs to be done for all pre-built non-live images (including cloud, RPi/SBC, mobile images), so I think it would be a good idea to work with the respective teams to converge on a single solution that can be used by all the teams. > - 'mobile-usb-networking'[4] provides scripts and the corresponding > systemd services to create a network connection over USB gadget This uses manual commands modifying things in /sys, I'd like to see the Linux USB gadget userspace infrastructure in Debian and this reworked to use that instead. IIRC the Collabora folks haven't fully upstreamed their systemd gadget integration though. Why does the setup script hardcode the 10.66.0.1 subnet? I'm not sure that modifying network connections from postinst and only supporting NetworkManager and not networkd, ifupdown etc is a good idea. Perhaps it should use netplan.io, which is a wrapper for multiple network management tools. https://github.com/linux-usb-gadgets https://github.com/gadgetd/gadgetd > - 'miniramfs'[5] works around the limitation of some devices for which > the initramfs size is constrained; it creates a minimal initramfs > able to chain-load the actual initrd from the boot partition and > transfer control to it Which part of these devices is limiting the initramfs size? Is using the MODULES=dep initramfs small enough? > * make it a single binary package with the config files and fragments > for all supported devices Seems reasonable. > * include an executable and per-device configs: upon installation, the > executable will run, detect the device type and install the necessary > files under `/etc` (or create symlinks to the original files if more > appropriate) I suggest to make this happen at boot time instead of install time. If I move my install (say on uSD card or just via rsync) from one device to another, it should reconfigure itself to support the new device when the new device boots the system for the first time. I also wonder if there are ways these tweaks could be applied without modifying /etc (maybe by using /run instead), since /etc could be configured read-only outside of the time when apt upgrades happen. > * for Android devices, it will extract firmware files from the vendor > partitions and copy them to `/lib/firmware`, so we don't have to care > about distributing those anymore This is already needed for some laptops where the firmware isn't redistributable, and I think it might also be needed for Apple M1 devices, so I think it would be good to have a solution to this that can be used in d-i as well as in the mobile images. It would also be great if d-i could be run on mobile devices so that one can get fully LUKS encrypted systems. -- bye, pabs https://wiki.debian.org/PaulWise
Attachment:
signature.asc
Description: This is a digitally signed message part