[lxc-devel] lxc-fedora fixes

Justin Albstmeijer justin at VLAMea.com
Wed Jun 24 08:16:14 UTC 2009


Just tested the git version of today.
Some of the issues still seem to be there..


building rpm package as non root does not work, as it tries to create
'/var/lib/lxc'

 /usr/bin/install -c 'lxc-checkconfig'
'/home/user/rpmbuild/BUILDROOT/lxc-0.6.2.240609-1.x86_64/usr/bin/lxc-checkconfig'
 /usr/bin/install -c 'lxc-setcap'
'/home/user/rpmbuild/BUILDROOT/lxc-0.6.2.240609-1.x86_64/usr/bin/lxc-setcap'
 /usr/bin/install -c 'lxc-version'
'/home/user/rpmbuild/BUILDROOT/lxc-0.6.2.240609-1.x86_64/usr/bin/lxc-version'
mkdir: cannot create directory `/var/lib/lxc': Permission denied
make[3]: *** [install-exec-local] Error 1
make[3]: Leaving directory
`/home/user/rpmbuild/BUILD/lxc-0.6.2.240609/src/lxc'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/home/user/rpmbuild/BUILD/lxc-0.6.2.240609/src/lxc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/user/rpmbuild/BUILD/lxc-0.6.2.240609/src'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.MW4h29 (%install)



lxc-fedora does not work:

-- problem 1 --

Checking cache download ...not cached
Initializing RPM cache ...
rpm: arguments to --root (-r) must begin with a /
Downloading fedora Release 11-1 description ...
Loaded plugins: refresh-packagekit
No Match for argument fedora-release.noarch.rpm


-- problem 2 --

Downloading fedora Release 11-1 description ...
Loaded plugins: refresh-packagekit
No Match for argument fedora-release.noarch.rpm
Nothing to download
Downloading fedora minimal ...
Loaded plugins: refresh-packagekit
fedora/metalink                                                           
                                                          |  12 kB    
00:00
Could not parse metalink
https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=x86_64
error was
File /var/cache/lxc/fedora/partial/var/cache/yum/fedora/metalink.xml.tmp
is not XML
Error: File
/var/cache/lxc/fedora/partial/var/cache/yum/fedora/metalink.xml does not
exist
Failed to download the rootfs, aborting.


-- fix --


--- lxc-fedora.org	2009-06-24 09:51:50.533476961 +0200
+++ lxc-fedora	2009-06-24 10:01:56.191487148 +0200
@@ -247,12 +247,12 @@
 				/^Version/ { version = $2 }
 				END { print version "-" release }')"
 		PKG="${DISTRO}-release.noarch.rpm"
-		RPM="rpm --root \"${CACHE}/partial\""
+		RPM="rpm --root ${CACHE}/partial"

 		echo "Initializing RPM cache ..."
 		${RPM} --initdb
 		echo "Downloading ${DISTRO} Release ${RELEASE} description ..."
-		yumdownloader --destdir="${CACHE}/partial"
"${DISTRO}-release.noarch.rpm" && \
+		yumdownloader --destdir="${CACHE}/partial" "${DISTRO}-release.noarch" && \
 		${RPM} --nodeps -ihv "${CACHE}/partial/${DISTRO}-release*.noarch.rpm"
 		echo "Downloading ${DISTRO} minimal ..."
 		yum --installroot="${CACHE}/partial" -y groupinstall Base







More information about the lxc-devel mailing list