[lxc-devel] lxc-fedora fixes

Justin Albstmeijer justin at VLAMea.com
Wed Jun 24 08:40:03 UTC 2009


last error when using 'lxc-fedora create'

--- problem ---

Download complete.
Copying rootfs ...Done.
/usr/bin/lxc-fedora: line 96: ./rootfs.fedora/sysconfig/network: No such
file or directory
Done.


-- combined patch ---

--- lxc-fedora.org	2009-06-24 09:51:50.533476961 +0200
+++ lxc-fedora	2009-06-24 10:32:21.313477740 +0200
@@ -93,7 +93,7 @@
 # custom hostname

 write_distro_hostname() {
-cat <<EOF > ${ROOTFS}/sysconfig/network
+cat <<EOF > ${ROOTFS}/etc/sysconfig/network
 NETWORKING=yes
 HOSTNAME=${UTSNAME}
 EOF
@@ -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