[Pbuilder-maint] NFS boots of pbuilder trees

Bruce Edge bruce.edge at qlogic.com
Mon May 8 21:19:18 UTC 2006


I'm using pbuilder in a slightly different way than most. I nfs boot my
target boxes from the pbuilder tree. I have a little script that makes
them bootable.
This works amazingly well, and is a very convenient development toolset.
One problem I've noted however is that pbuilder sometimes refuses to
unmount after a build if a target box is booted from the tree. It seems
to get confused about the mount state of /proc.

eg:
root at xxx:/# exit
exit
umount: /xxx/root/proc: device is busy
umount: /xxx/root/proc: device is busy

  Could not unmount proc, there might be some program
  still using files in /proc (klogd?).

  avoid this message.

I haven't dug into the code yet, I thought I'd throw this out there
first.
What about using "umount -lf " to exit trees?

Another nit I've seen is that on build failures, or if a someone hits a
bunch of ctrl-C's in a row, it can leave the bind mounts in place. This
causes "very bad things" if you decide to "sudo rm -rf" the tree with
the bind mounts still attached.
Are there any trap handlers in pbuilder? If so, we should add some to
catch the over-eager user pounding on ctrl-C to quit.

-Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20060508/ba3cc6e1/attachment.html


More information about the Pbuilder-maint mailing list