Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from Pure-AdamuKaapan/CentOSUpdate
Browse files Browse the repository at this point in the history
Added CentOS Vault as baseurl of yum repo
  • Loading branch information
Pure-AdamuKaapan authored Oct 4, 2019
2 parents 05b0e0f + f523074 commit 51bf0c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 0 additions & 10 deletions images/lorax-build/lorax.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,3 @@ index 04d13610..1c5deb7c 100644
add_templates=None,
add_template_vars=None,
add_arch_templates=None,
@@ -308,7 +308,8 @@ class Lorax(BaseLoraxClass):
else:
logger.info("no BCJ filter for arch %s", self.arch.basearch)
rb.create_runtime(joinpaths(installroot,runtime),
- compression=compression, compressargs=compressargs)
+ compression=compression, compressargs=compressargs,
+ size=size)

logger.info("preparing to build output tree and boot images")
treebuilder = TreeBuilder(product=self.product, arch=self.arch,
12 changes: 12 additions & 0 deletions scripts/build/build_installer_iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ mkdir -p ${BUILD_TMP_DIR}
cp /etc/yum.repos.d/CentOS-Base.repo ${BUILD_TMP_DIR}/centos7-base.repo
sed -i s/.releasever/7/g ${BUILD_TMP_DIR}/centos7-base.repo

# We need to change the base URL to use the CentOS vault.
sed -i "s/#baseurl=http:\/\/mirror.centos.org\/centos\/7/baseurl=http:\/\/vault.centos.org\/${CENTOS_VERSION}/g" ${BUILD_TMP_DIR}/centos7-base.repo
# Disable the mirror list because the mirrors lie (they make it so we can't find packages for some reason)
sed -i "s/mirrorlist/#mirrorlist/g" ${BUILD_TMP_DIR}/centos7-base.repo

# Copy this back to use our updated version
cp ${BUILD_TMP_DIR}/centos7-base.repo /etc/yum.repos.d/CentOS-Base.repo

# Clean all just to remove any caches we may somehow have
yum clean all

# Generate our boot config RPM, which is in itself installing along with some extra configs
mkdir -p ${BUILD_TMP_DIR}/pure1-unplugged-boot-config-rpm
mkdir -p ${BUILD_TMP_DIR}/pure1-unplugged-boot-config-rpm/Packages
Expand Down Expand Up @@ -104,6 +115,7 @@ lorax \
--bugurl "https://support.purestorage.com/" \
--volid ${PURE1_UNPLUGGED_VOLID} \
--buildarch "x86_64" \
--rootfs-size 10 \
${BUILD_DIR}/lorax-results

cp ${BUILD_DIR}/lorax-results/images/boot.iso ${BUILD_DIR}/${OS_NAME}-${VERSION}.iso
Expand Down

0 comments on commit 51bf0c4

Please sign in to comment.