~ubuntu-branches/ubuntu/quantal/lxc/quantal-201208301614

« back to all changes in this revision

Viewing changes to scripts/lxc-fedora.in

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2009-07-25 12:24:30 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20090725122430-s2mijwddl8nwseue
* New Upstream Version
* Remove duplicate build-dependency on autotools-dev
* Build depend on linux-libc-dev
* Disable checking of netlink headers from configure
  (currently fails under sid)
* Upgrade standards-version to 3.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
# custom hostname
94
94
 
95
95
write_distro_hostname() {
96
 
cat <<EOF > ${ROOTFS}/sysconfig/network
 
96
cat <<EOF > ${ROOTFS}/etc/sysconfig/network
97
97
NETWORKING=yes
98
98
HOSTNAME=${UTSNAME}
99
99
EOF
246
246
                                '/^Release/ { release = $2 }
247
247
                                /^Version/ { version = $2 }
248
248
                                END { print version "-" release }')"
249
 
                PKG="${DISTRO}-release.noarch.rpm"
250
 
                RPM="rpm --root \"${CACHE}/partial\""
 
249
 
 
250
                PKG="${DISTRO}-release-${RELEASE}.noarch"
 
251
                RPM="rpm --root ${CACHE}/partial"
251
252
 
252
253
                echo "Initializing RPM cache ..."
253
254
                ${RPM} --initdb
254
 
                echo "Downloading ${DISTRO} Release ${RELEASE} description ..."
255
 
                yumdownloader --destdir="${CACHE}/partial" "${DISTRO}-release.noarch.rpm" && \
256
 
                ${RPM} --nodeps -ihv "${CACHE}/partial/${DISTRO}-release*.noarch.rpm"
 
255
                echo "Downloading distribution release file ${PKG}"
 
256
                yumdownloader --destdir="${CACHE}/partial" "${PKG}"
 
257
                RESULT=$?
 
258
 
 
259
               if [ "${RESULT}" != "0" ]; then
 
260
                   echo "Enable to download the distribution release file"
 
261
                   exit 1
 
262
               fi
 
263
 
 
264
                ${RPM} --nodeps -ihv "${CACHE}/partial/${PKG}.rpm"
 
265
 
257
266
                echo "Downloading ${DISTRO} minimal ..."
258
267
                yum --installroot="${CACHE}/partial" -y groupinstall Base
259
268
                RESULT=$?