#981006 No way of adding task packages with dependencies (necessary for tasksel) - packages listed in .download should be included with their dependencies #981006
- Package:
- simple-cdd
- Source:
- simple-cdd
- Submitter:
- Daniel Leidert
- Date:
- 2021-02-05 03:06:02 UTC
- Severity:
- wishlist
Hi, I'm working on some custom installer CDs. Now one of the goals is to install some tasks using tasksel. So I added e.g. tasksel tasksel/first multiselect standard, ssh-server, swedish to overwrite default.preseed. I also added task-ssh-server task-swedish to my profile.downloads file. But the resulting image does not contain all the necessary dependencies. It includes just the plain task* packages. So the installer requires an internet connection to fetch the dependencies (in my case I turned off all attempts to access the network). I wonder if all packages listed in *.downloads should be included with their dependencies by default? IMHO it makes more sense than to just include the plain packages because they might end up uninstallable. PS: BTW it took my *days* to figure out why `d-i tasksel/first multiselect ...` didn't have any effect - because default.preseed sets `*tasksel* tasksel/first ...` and that takes precendence it seems. I do wonder if default.preseed should use the d-i prefix here. Regards, Daniel - -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages simple-cdd depends on: ii dctrl-tools 2.24-3+b1 ii debian-cd 3.1.32 ii lsb-release 11.1.0 ii python3 3.9.1-1 ii python3-simple-cdd 0.6.8 ii reprepro 5.3.0-1.1 ii rsync 3.2.3-3 ii wget 1.21-1+b1 Versions of packages simple-cdd recommends: ii dose-distcheck 5.0.1-16+b1 Versions of packages simple-cdd suggests: ii qemu-system 1:5.2+dfsg-3 ii qemu-system-x86 [qemu-kvm] 1:5.2+dfsg-3 - -- no debconf information -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAmAO2VcACgkQS80FZ8KW 0F2NPQ//VmYOQ15lJ31ryvuNVPxTB12k8dfTTFbFVv3OzRtcvr9xqvCcDi+pXsyF lkQHaEk0xl7tJg+IM377QTsoI/IzG2wEgnZPg5n7Cvgb9VSLcxkba0I31FJVMNlH /FcjrkQ/mKse9x6n7a3JSfd8kYF8Ad0aQ4ocpBwbAYkdNFyud3v/z3h3qDj0XYfF q0A9gRkdBcLfZBsVK6VPd0awHXkGcvFlrxDxKjSeIdB8MTI5oliQBRgEtiUhuWjL D8AQiXz4wE9nNu1HQQuXNJdyU+lRI7kepTRfd3geJEW6YiOSemUtKNMNKQy6Vw2C jGlTPHqhBJ+Ovlt4AJyS7GAvchuAH6urqeJ3TJxAdtk2qafwSONiXAwU8qU03eA5 esZWjMdUjLSNTyHUWSe1G7HcFC19EZGloA1kW6FFRVrP6YqtdVk63NOOMm8IB9fs hlgFZYYqunRjqMcYKYEePUbuGw7f3EZWJV7NCSYIisLPaqoWOkLcIaTJHoeJT7w5 owxLdgm3VmM4kmiFiuEw07uE9Gl6nku2VBK3C4R4SYEYSzLG1XC0r57BQY1+lo0/ EzsZWX0Y/9Ik+gc4SqJIrHLlCTOvLFPSk12LIKXH0e5jeVV2bUDq/T7LW7S2Rjw7 LLDx0k7KKMaO5aWsa+BEgmKNMSxXq6yBUnOwVBU88ygyOxoBh2c= =eilh -----END PGP SIGNATURE-----
Hm. Maybe strike that. I misread some recommended packages as depends. But still overwriting tasksel tasksel/first multiselect standard fails without a mirror set up. So I'm guessing some missing packages. I'm trying to debug this further. Regards, Daniel - -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages simple-cdd depends on: ii dctrl-tools 2.24-3+b1 ii debian-cd 3.1.32 ii lsb-release 11.1.0 ii python3 3.9.1-1 ii python3-simple-cdd 0.6.8 ii reprepro 5.3.0-1.1 ii rsync 3.2.3-3 ii wget 1.21-1+b1 Versions of packages simple-cdd recommends: ii dose-distcheck 5.0.1-16+b1 Versions of packages simple-cdd suggests: ii qemu-system 1:5.2+dfsg-3 ii qemu-system-x86 [qemu-kvm] 1:5.2+dfsg-3 - -- no debconf information -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAmAO3MoACgkQS80FZ8KW 0F3n2hAAl17PB2+dF3UkzBwyJPTVtp5D0eXxiRsH3dBQQAhf/gSO6J3cni2gMOt9 dNS5px7snwrQ1YNwE1Fq7GxzAlWwzWD8iQjsYDdFPQ08ede3SF0vpoBzG5FLjlJI txbd1cqBKD4TDueAAiWJ00Wu5iANt7gTzc+QNFBHWI45vcY5hXS0oYFSz1t+tZE5 4M5MS+qMc76iow3HuzFOUDjayWBIuVJV8ihSEf3h5VBu5oHl7camazRj0evpiD2v nJO56xht4S2JpWaU4hgAB94FPvhL+2aQFl7zL+azWceeK4FmpHA+3dYlddV5CSBz QdPe1klYNecS1pDgrDCRFDm0Kby2JjanjQJASJnTbs2W4YA5GHtw+oACcAf93N/G QmoK0M8cg9BVqPH5cvRDFFDQJ3Fibvmc0dsDdQXbjLV7sbT4PfijBJGGPUz54BX9 Wq1/ffPc7/JJaaWlYKjjSn/bZk0ewXd8JfpsizZK36svH6FXsSpKfquEePr344Wk 3t8/OrrCwZ2n8bKGVrXPFnOYr5fevrlLWwIyHCy3ED+Uu+dNuG3CzJGm/dGC4FlU kXBwB8Ki3280RgkodqFVGqQwjRTZFGN22vjayX59wzH9jBp3nBlmE+2dBD2s7rUN Qx7RLFRD5gVDEOufulRDduX+cE5uy82q5hLIbOsaOkFKIEKFn6E= =rqjF -----END PGP SIGNATURE-----
I added this to a profiles/misc.preseed file: tasksel tasksel/first multiselect tasksel tasksel/first seen false tasksel tasksel/tasks multiselect tasksel tasksel/tasks seen false And then it prompted for the tasksel tasks. It only displayed standard, which the built iso image had all the dependencies for. This might be worth testing a bit more and fleshing out the option. There's also a tasksel/desktop that might be needed to get the desktop profiles enabled; not sure exactly how that works. Yeah, you'll need to specify all the packages the tasksel task needs to make sure they're on the install media. Packages in .downloads are somewhat treated like recommends; e.g. add them to the install media if possible, but don't fail if they aren't available. Overall, profiles/*.packages are used to select packages to install with simple-cdd instead of tasksel tasks. I had looked into being able to specify tasksel tasks many, many years ago and it was too complicated at the time... the idea was to create profiles/*.tasks and then it would look up the required packages and add them to the install media. Never figured out how to do that, and it is a bit redundant with the simple-cdd profiles. Maybe someone else has a better idea how to implement it or the tasksel code has changed to make it easier now? live well, vagrant