forked from Sysdeploy/ipxe_scripts
Compare commits
No commits in common. "e79ea2eaa2e80bf40bcc7ce9c1ddb93f4312d54d" and "master" have entirely different histories.
e79ea2eaa2
...
master
|
@ -11,12 +11,11 @@ function clone_ipxe_upstream() {
|
|||
|
||||
#git clone git://git.ipxe.org/ipxe.git "$ipxe_src_dir" || return 1
|
||||
git submodule update --init --recursive
|
||||
curr="$(pwd)"
|
||||
cd "$ipxe_src_dir"
|
||||
|
||||
# Known good commit
|
||||
git checkout 56f7d44fde1d6ac196d115cc7dddd58e7ec098fa || return 1
|
||||
cd "$curr"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -78,12 +77,11 @@ function make_ipxe_lkrn() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
|
||||
cd "${ipxe_src_dir}/src/" || return 1
|
||||
|
||||
make bin/ipxe.lkrn EMBED="${embed_file}" CERT="${signing_cert},${ca_cert}" TRUST="${ca_cert}" || return 2
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -114,12 +112,10 @@ function make_ipxe_iso() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "${ipxe_src_dir}/src/" || return 1
|
||||
|
||||
make bin/ipxe.iso EMBED="${embed_file}" CERT="${signing_cert},${ca_cert}" TRUST="${ca_cert}" || return 2
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -139,11 +135,10 @@ function make_ipxe_bin_shasums() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "${ipxe_src_dir}/src/bin/" || return 1
|
||||
|
||||
sha256sum ipxe.lkrn ipxe.iso > SHA256SUMS || return 2
|
||||
cd "$curr"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -168,12 +163,8 @@ function tag_head_and_push() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "$git_repo_dir"
|
||||
|
||||
git config user.name "BuildBot"
|
||||
git config user.email "buildbot@bitmessage.io"
|
||||
|
||||
git tag -n | grep $(git rev-parse HEAD)
|
||||
if [ $? -eq 0 ]; then
|
||||
>&2 echo 'HEAD tag already exists, bailing out...'
|
||||
|
@ -181,13 +172,12 @@ function tag_head_and_push() {
|
|||
fi
|
||||
|
||||
git tag -a "g_$(git rev-parse HEAD)" HEAD -m "BuildBot: tag commit for release $(git rev-parse HEAD)" || return 2
|
||||
#git push --tags origin master
|
||||
git push --tags "$remote" "$branch"
|
||||
if [ $? -ne 0 ]; then
|
||||
>&2 echo 'Error during attempted git push of new tag'
|
||||
return 3
|
||||
fi
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -219,7 +209,6 @@ function create_release() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "$git_repo_dir"
|
||||
head="$(git rev-parse HEAD)"
|
||||
|
||||
|
@ -253,7 +242,6 @@ EOF
|
|||
return 2
|
||||
fi
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -302,7 +290,6 @@ function upload_release_ipxe_lkrn() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "$git_repo_dir"
|
||||
|
||||
cat release_results.txt | grep ^HTTP/ | grep 201 >/dev/null
|
||||
|
@ -334,7 +321,6 @@ function upload_release_ipxe_lkrn() {
|
|||
return 2
|
||||
fi
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -383,7 +369,6 @@ function upload_release_ipxe_iso() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "$git_repo_dir"
|
||||
|
||||
cat release_results.txt | grep ^HTTP/ | grep 201 >/dev/null
|
||||
|
@ -415,7 +400,6 @@ function upload_release_ipxe_iso() {
|
|||
return 2
|
||||
fi
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -464,7 +448,6 @@ function upload_release_ipxe_shasums() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
curr="$(pwd)"
|
||||
cd "$git_repo_dir"
|
||||
|
||||
cat release_results.txt | grep ^HTTP/ | grep 201 >/dev/null
|
||||
|
@ -496,7 +479,6 @@ function upload_release_ipxe_shasums() {
|
|||
return 2
|
||||
fi
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -37,11 +37,6 @@ isset ${net${idx}/mac} || goto loop_done
|
|||
|
||||
iseq ${net${idx}/mac:string} "00:01:02:A0:B1:C1" && set ip-dev-name eth0 && set ip-addr "192.168.1.5" && set ip-gateway "192.168.1.1" && set ip-netmask "255.255.255.0" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
|
||||
iseq ${net${idx}/mac:string} "03:04:05:D4:E5:F6" && set ip-dev-name eth0 && set ip-addr "192.168.99.2" && set ip-gateway "192.168.99.1" && set ip-netmask "255.255.255.0" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
|
||||
|
||||
# node1.bitmessage.at
|
||||
iseq ${net${idx}/mac:string} "40:a8:f0:31:cc:58" && set ip-dev-name eth0 && set ip-addr "93.189.28.82" && set ip-gateway "93.189.28.81" && set ip-netmask "255.255.255.240" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
|
||||
iseq ${net${idx}/mac:string} "40:a8:f0:31:cc:59" && set ip-dev-name eth0 && set ip-addr "93.189.28.82" && set ip-gateway "93.189.28.81" && set ip-netmask "255.255.255.240" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
|
||||
|
||||
##############################################################################
|
||||
inc idx && goto loop
|
||||
|
||||
|
|
Loading…
Reference in New Issue