diskimage-builder/lib
Markos Chandras a1f57b8cad lib: common-functions: Fix tmpfs umounting
It has been observed that some chroot operations spawn additional
processes which rely on chroot files. More specifically, zypper, uses
gpg-agent to import and validate gpg keys for its repositories. This
gpg-agent process may stay alive for longer which prevents unmounting of
the tmpfs directory since the gpg-agent process still uses libraries etc
which were present in the chroot. We try to solve this by using walking
all the pids in /proc to find out the running processes in the chroot and
kill them gracefully. If that fails for whatever reason, then we simply
keep trying to umount the tmpfs directory before we give up.

The gpg-agent process usually terminates soon after its home directory
disappears but on fast systems we can reach the 'umount tmpfs' point
before gpg-agent terminates by itself. The solution is generic enough so
other 'chroot processes' can also be handled appropriately.

Change-Id: Iccf332678c79266113e76f062884fc5ee79e515d
2016-11-16 15:44:01 +00:00
..
common-defaults Create (md5|sha256) checksum files for images 2016-10-05 19:34:03 -04:00
common-functions lib: common-functions: Fix tmpfs umounting 2016-11-16 15:44:01 +00:00
die Export die() function 2016-05-27 09:25:22 +10:00
img-defaults Export FS_TYPE and remove hardcoded ext4 values 2016-05-19 17:33:36 +10:00
img-functions Correct order of parameters in call to qemu-img convert 2016-07-21 10:57:40 +02:00
ramdisk-defaults Add #!/bin/bash to library functions 2015-09-16 13:54:07 +10:00
ramdisk-functions Merge "Prevent overwriting of user modified blacklist.conf" 2015-10-05 18:57:01 +00:00