[Live-demo] Build Process - Filesystems
Angelos Tzotsos
gcpp.kalxas at gmail.com
Fri Dec 21 02:46:16 PST 2012
On 12/21/2012 12:17 PM, Patric Hafner | geOps wrote:
> Dear Members of the OSGeo mailing list,
>
> in last days, I run the build process as described here [1] several
> times to test our install script. Unfortunately the building always
> failed due to problem with unmouting of dev and proc-filesystem for
> chroot. After some small changes, I was able to fix this issue.
> Do someone else also experienced those problems?
>
> For me it is not obvious why it is necessary to bind the whole /dev into
> the chroot - /dev/pts should do it. Secondly, it seems more safe to me,
> to execute the mount of /proc outside the chroot.
> After performing the following changes, building runs always fine in my
> environment.
>
> *build_chroot_debug.sh*
>
> -- sudo mount --bind /dev/ edit/dev
> ++ sudo mount -t proc -o bind /proc edit/proc
> ++ sudo mount -o bind /dev/pts edit/dev/pts
> ...
> -- sudo umount edit/dev
> ++ sudo umount edit/dev/pts
> ++ sudo umount edit/proc
>
> *inchroot_debug.sh*
>
> --mount -t proc none /proc
> --mount -t sysfs none /sys
> --mount -t devpts none /dev/pts
> ...
> -- umount /proc || umount -lf /proc
> -- umount /sys
> -- umount /dev/pts
>
> Any comments or ideas ?
>
>
> [1]
> http://wiki.osgeo.org/wiki/Live_GIS_Build#How_to_do_development_.2F_debugging_with_the_current_build_method
>
Hi Patric,
Thanks for your patch, I will test it too.
The previous instructions came directly from the official Ubuntu wiki,
so we did not touch them, and it worked ok (we simply had to reboot the
build VM after a successful build process).
Best,
Angelos
--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos
More information about the Live-demo
mailing list