if [ "$root" != "/" ] || [ -e /dev/ttyS1 ] || [ -e /dev/hvc1 ]; then
This breaks this VM image detection logic:
https://salsa.debian.org/ci-team/autopkgtest/-/blob/07eb656d26b097028c28ff743f4ea7eb71bc2d01/setup-commands/setup-testbed#L72
if [ "$root" != "/" ] || [ -e /dev/ttyS1 ] || [ -e /dev/hvc1 ]; then
$root is / and the host's serial devices are... whatever they are.
Ideas:
1. We could just always install these root shell services (but they are
a security risk, if these images are used for anything other than
autopkgtest)
3. Have a command line argument to install them?
3. Have a command line argument to install them?
Or an environment variable, perhaps? setup-testbed has historically
not taken command-line arguments except for the sysroot to act on, and
adding a proper command-line parser to it doesn't seem hugely
appealing when we have to write it with one hand tied behind our backs
(as described in debian/README.source it's expected to be runnable on
10+ year old operating systems).
BTW, how about making the qemu virt backend install python3 by itself,
if it's missing? Then we can use the same images for incus & qemu,
without having to pollute them with python3.
Sorry, no. Because of the Rube Goldberg machine that
autopkgtest-virt-qemu currently uses to invoke arbitrary commands on
the testbed, it needs /usr/bin/python3 before it can run apt. It only
needs python3-minimal and not full python3, I think.
(Technically it could run apt directly in the passwordless root shell,
but then we'd have to duplicate all the machinery to make apt
noninteractive and set useful resolver options, and when something
goes wrong you wouldn't get any of the output of apt logged somewhere
that the autopkgtest caller can see it, except when using a-v-qemu
--debug, which is very noisy.)
Using ssh for command execution would address this, at the cost of
needing to preinstall either openssh-server or its dropbear
equivalent. Is that a normal thing to have in Incus VM images?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 480 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:16:43 |
Calls: | 9,532 |
Files: | 13,651 |
Messages: | 6,138,293 |