[Buildd-tools-devel] Bug#469038: new mount helper does not mkdir

Kees Cook kees at outflux.net
Sun Mar 2 18:30:07 UTC 2008


Package: schroot
Version: 1.1.6-1
Severity: normal
Tags: patch

First, the new mount helper is great.  I've finally had a chance to play
with it.  However, I noticed that unlike the original 10mount "do_mount"
function, it does not create target mount point directories, which
results in:

I: Executing '/bin/mount -v -t none -o rw,bind /scratch /var/lib/schroot/mount/edgy-4bbec1fc-044d-4ec0-9613-c783e4c04f5f/scratch'
mount: mount point /var/lib/schroot/mount/edgy-4bbec1fc-044d-4ec0-9613-c783e4c04f5f/scratch does not exist

(This used to work when I used a modified 10mount that just made extra
calls to do_mount.)

I've attempted a boosty solution, which is attached (though it requires
that libboost-filesystem-dev be added to the Build-Depends).  Note this is my
first use of boost -- pardon any ugliness.  ;)

-- 
Kees Cook                                            @outflux.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-target.patch
Type: text/x-diff
Size: 2030 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20080302/b3a1ee2d/attachment.patch 


More information about the Buildd-tools-devel mailing list