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
36ad2f88
Commit
36ad2f88
authored
Nov 14, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Create an image name not host-specific.
parent
a8aa5639
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
generation/20generate-image.sh
generation/20generate-image.sh
+1
-1
generation/30upload-image.sh
generation/30upload-image.sh
+2
-2
No files found.
generation/20generate-image.sh
View file @
36ad2f88
...
...
@@ -126,7 +126,7 @@ CERT_DIR=uefi-keys/public-certificates
KEYS_DIR
=
uefi-keys/private-keys
PUBLIC_CERT_DIR
=
${
PROJECT_DIR
}
/
${
CERT_DIR
}
/
${
SERVER_GROUP
}
PRIVATE_KEYS_DIR
=
${
PROJECT_DIR
}
/
${
KEYS_DIR
}
/
${
SERVER_GROUP
}
uefi_image_name
=
"
$(
uname
-s
|
tr
'[:upper:]'
'[:lower:]'
)
-
$(
uname
-r
)
_
${
MCA_NAME_AND_VERSION
}
_
${
FLB_NAME_AND_VERSION
}
_
${
SERVER_GROUP
}
_
${
TARGET_HOSTNAME
}
"
.efi
uefi_image_name
=
"
$(
uname
-s
|
tr
'[:upper:]'
'[:lower:]'
)
-
$(
uname
-r
)
_
${
MCA_NAME_AND_VERSION
}
_
${
FLB_NAME_AND_VERSION
}
_
${
SERVER_GROUP
}
"
.efi
dracut_output_file
=
dracut-output
# Install the module
...
...
generation/30upload-image.sh
View file @
36ad2f88
...
...
@@ -9,12 +9,12 @@ 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
uefi_image_name
=
"
$(
uname
-s
|
tr
'[:upper:]'
'[:lower:]'
)
-
$(
uname
-r
)
_
${
MCA_NAME_AND_VERSION
}
_
${
FLB_NAME_AND_VERSION
}
_
${
SERVER_GROUP
}
"
.efi
networkcache-upload
--conf
../tls-access-to-shacache/test.cfg
--file
"
$uefi_image_name
"
sha_list
=
installation/images-sha512.list
hash_comment
=
"# off + dummy ips, rd.neednet=1
rd.break=moun
t"
hash_comment
=
"# off + dummy ips, rd.neednet=1
LABEL=Roo
t"
echo
$(
sha512sum
"
$uefi_image_name
"
|
cut
-d
' '
-f1
)
"
$hash_comment
"
>>
"
$sha_list
"
git add
"
$sha_list
"
git commit
-m
"installation: Add an image hash."
...
...
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