Comment 0 for bug 1645680

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
while testing I found that when running apt feature related to add-apt-repository like:

apt:
  sources:
    ignored1:
      source: "ppa:paelzer/yourppa"

Or in fact any sort of add-apt-repository (also unrelated to the apt feature itself) like:
late_commands:
 01_install_ppa: ['curtin', 'in-target --', 'add-apt-repository --yes ppa:paelzer/bug-1645274-multipath-merge']

Then the installation fails.

Both use the chroot to execute in target, but recent add-apt-repository seems so cause daemons to spawn which then let the umount fail.

Failure is usually around something like:
"umount: /tmp/tmptmucmfm0/target/dev: target is busy"

Here an excerpt from a lsof +fg afterwards.
dirmngr 6771 root 1r CHR LG,0x80000 1,9 0t0 11 /tmp/tmptmucmfm0/target/dev/urandom
dirmngr 6771 root 2w CHR W,LG 1,3 0t0 6 /tmp/tmptmucmfm0/target/dev/null
gpg-agent 6776 root 0r CHR LG 1,3 0t0 6 /tmp/tmptmucmfm0/target/dev/null
gpg-agent 6776 root 1w CHR W,LG 1,3 0t0 6 /tmp/tmptmucmfm0/target/dev/null
gpg-agent 6776 root 2w CHR W,LG 1,3 0t0 6 /tmp/tmptmucmfm0/target/dev/null

One of them could be shut down by:
gpg-connect-agent --verbose KILLAGENT
But not dirmngr, that has to be killed.
Actually killing them seems ok (does not seem to create and later fallout).