Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding exclude for syslinux-6.XX directory #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ etc/hosts
tftproot/pxelinux.cfg/01*
ssh
local_settings.py
syslinux-*/
16 changes: 12 additions & 4 deletions fetch_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ function fetch_ubuntu {
local images=( maverick natty oneiric precise trusty )
local files=( initrd.gz linux )

mkdir ${DIRNAME}
if [[ ! -d ${DIRNAME} ]]; then
mkdir ${DIRNAME}
fi

pushd ${DIRNAME}
for image in ${images[@]}; do
echo "Grabbing files for Ubuntu-${image}"
mkdir "${image}-${SUFFIX}";
if [[ ! -d "${image}-${SUFFIX}" ]]; then
mkdir "${image}-${SUFFIX}"
fi
# cp preseed.txt ../../../templates/preseed/${image}-${SUFFIX}-preseed.txt;
for file in ${files[@]}; do
wget "${urlbase}/ubuntu/dists/${image}/main/installer-${SUFFIX}/current/images/netboot/ubuntu-installer/${SUFFIX}/${file}" -q -P ${image}-${SUFFIX};
Expand All @@ -28,12 +32,16 @@ function fetch_centos {
local images=( 6.4 )
local files=( initrd.img vmlinuz )

mkdir ${DIRNAME}
if [[ ! -d ${DIRNAME} ]]; then
mkdir ${DIRNAME}
fi

pushd ${DIRNAME}
for image in ${images[@]}; do
echo "Grabbing files for CentOS-${image}"
mkdir "${image}-${SUFFIX}";
if [[ ! -d "${image}-${SUFFIX}" ]]; then
mkdir "${image}-${SUFFIX}";
fi
for file in ${files[@]}; do
wget "${urlbase}/centos/${image}/os/${SUFFIX}/images/pxeboot/${file}" -q -P ${image}-${SUFFIX};
done;
Expand Down