Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
5d92d69a
Commit
5d92d69a
authored
Oct 21, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Add 30upload-image.sh
parent
5459a58c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
generation/30upload-image.sh
generation/30upload-image.sh
+21
-0
No files found.
generation/30upload-image.sh
0 → 100755
View file @
5d92d69a
#!/bin/bash
set
-e
# get the root of the git repository (requires git to be installed)
GIT_ROOT
=
`
git rev-parse
--show-toplevel
`
cd
$GIT_ROOT
# define useful variables
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
"
sha_list
=
installation/images-sha512.list
hash_comment
=
"# dhcp rd.neednet=1 no scanning no sending (test again as the previous scanned and sent)"
echo
$(
sha512sum
"
$uefi_image_name
"
|
cut
-d
' '
-f1
)
"
$hash_comment
"
>>
"
$sha_list
"
git add
"
$sha_list
"
git commit
-m
"installation: Add an image hash."
git push
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment