Commit f63d0c31 authored by Ophélie Gagnard's avatar Ophélie Gagnard

generation: Improve scripts.

parent 0d8e700a
......@@ -15,10 +15,11 @@ git config --local user.email "ophelie.gagnard@nexedi.com"
git config --local user.name "Ophelie Gagnard"
# building initramfs
apt -y install dracut-core dracut dracut-network sbsigntool
apt -y install dracut-core dracut dracut-network sbsigntool pip
pip install slapos.libnetworkcache
rm -f *"$MCA_PACKAGE_NAME"*
rm -f *"$FLB_PACKAGE_NAME"*
apt -y remove "$MCA_PACKAGE_NAME" "$FLB_PACKAGE_NAME"
apt -y remove "$MCA_PACKAGE_NAME" "$FLB_PACKAGE_NAME" || true
wget "$MCA_PACKAGE_URL"
wget "$FLB_PACKAGE_URL"
apt -y install ./"$MCA_PACKAGE_FILE"
......
......@@ -11,10 +11,10 @@ source generation/00env.sh
uefi_image_name="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -r)_${MCA_NAME_AND_VERSION}_${FLB_NAME_AND_VERSION}_${SERVER_GROUP}_${TARGET_HOSTNAME}".efi
networkcache-upload --conf ../test.cfg --file "$uefi_image_name"
networkcache-upload --conf ../tls-access-to-shacache/test.cfg --file "$uefi_image_name"
sha_list=installation/images-sha512.list
hash_comment="# dhcp rd.neednet=1 no scanning no sending (test again as the previous scanned and sent)"
hash_comment="# off + dummy ips, rd.neednet=1 rd.break=mount"
echo $(sha512sum "$uefi_image_name" | cut -d' ' -f1) "$hash_comment" >> "$sha_list"
git add "$sha_list"
git commit -m "installation: Add an image hash."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment