Re: [lxc-devel] use defined rootfs mount point regression?
On 05/20/2010 10:40 PM, Nathan Lynch wrote: Hi, $ find /tmp/tmp.zNMDgzalhM -print /tmp/tmp.zNMDgzalhM /tmp/tmp.zNMDgzalhM/proc /tmp/tmp.zNMDgzalhM/dev /tmp/tmp.zNMDgzalhM/dev/shm /tmp/tmp.zNMDgzalhM/bin /tmp/tmp.zNMDgzalhM/bin/true /tmp/tmp.zNMDgzalhM/lib64 /tmp/tmp.zNMDgzalhM/lib64/libutil.so.1 /tmp/tmp.zNMDgzalhM/lib64/ld-linux-x86-64.so.2 /tmp/tmp.zNMDgzalhM/lib64/ld-2.11.1.so /tmp/tmp.zNMDgzalhM/lib64/libc-2.11.1.so /tmp/tmp.zNMDgzalhM/lib64/libc.so.6 /tmp/tmp.zNMDgzalhM/lib64/libutil-2.11.1.so /tmp/tmp.zNMDgzalhM/usr /tmp/tmp.zNMDgzalhM/usr/libexec /tmp/tmp.zNMDgzalhM/usr/libexec/lxc-init /tmp/tmp.zNMDgzalhM/usr/lib64 /tmp/tmp.zNMDgzalhM/usr/lib64/liblxc.so.0.6.5 /tmp/tmp.zNMDgzalhM/usr/lib64/liblxc.so.0 /tmp/tmp.zNMDgzalhM/usr/lib64/liblxc.so $ lxc-execute -n truetest-19794 -s lxc.rootfs=/tmp/tmp.zNMDgzalhM -- /bin/true The above succeeds with lxc 0.6.5 as well as commit 23b7ea6 (add lxc.rootfs.mount config option). With commit b178944 (use defined rootfs mount point), the lxc-execute command fails with: lxc-execute: No such file or directory - failed to access to '/usr/lib64/lxc', check it is present lxc-execute: failed to set rootfs for 'truetest-19794' lxc-execute: failed to setup the container /usr/lib64/lxc does not exist on the host. Is this the intended behavior? Yes, you have to create it. I expect the distro maintainers to update their package %post_install section to create the directory. Here is the thread about this change: http://sourceforge.net/mailarchive/forum.php?thread_name=4BEC269A.1030207%40free.frforum_name=lxc-users Thanks -- Daniel -- ___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel
Re: [lxc-devel] use defined rootfs mount point regression?
Daniel Lezcano daniel.lezc...@free.fr writes: On 05/21/2010 11:14 AM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 05/20/2010 10:40 PM, Nathan Lynch wrote: lxc-execute: No such file or directory - failed to access to '/usr/lib64/lxc', check it is present lxc-execute: failed to set rootfs for 'truetest-19794' lxc-execute: failed to setup the container /usr/lib64/lxc does not exist on the host. Is this the intended behavior? Yes, you have to create it. I expect the distro maintainers to update their package %post_install section to create the directory. It should probably be a job for lxc's make install as well, though Yes, it's possible. But we have to take care of package generation eg. rpmbuild which creates a temporary install directory. Sure, the package generation will generally have to change as well. During that, make install is usually called with DESTDIR set to some temporary directory, and the packaging tools (at least in Debian) can warn the packager is something is left there but was not put in any package. -- Regards, Feri. -- ___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel