]> git.ozlabs.org Git - petitboot/commitdiff
discover: Allow for already-mounted devices
authorJeremy Kerr <jk@ozlabs.org>
Tue, 1 Oct 2013 02:42:04 +0000 (10:42 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 1 Oct 2013 04:51:55 +0000 (12:51 +0800)
When we start the discover server, we may find that devices are already
mounted. In this case, mount_device will fail, and we'll abort the
parse.

This change uses /proc/self/mounts to check if new devices are already
mounted, and uses the existing mount point.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found