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
4e23964f
Commit
4e23964f
authored
Jan 02, 2023
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Manage image name properly. Fix a typo.
parent
f381e011
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
generation/00env.sh
generation/00env.sh
+2
-0
generation/30generate-image.sh
generation/30generate-image.sh
+2
-3
generation/40upload-image.sh
generation/40upload-image.sh
+3
-3
No files found.
generation/00env.sh
View file @
4e23964f
...
...
@@ -33,3 +33,5 @@ TMP_URL_PATTERN="https://download.opensuse.org/repositories/home:oph.nxd/Debian_
MCA_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
MCA_PACKAGE_FILE
}
FLB_PACKAGE_URL
=
${
TMP_URL_PATTERN
}
/
${
FLB_PACKAGE_FILE
}
PLG_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
PLG_PACKAGE_FILE
}
UEFI_IMAGE_NAME
=
"linux-
${
KERNEL_VERSION
}
_
${
MCA_NAME_AND_VERSION
}
_
${
FLB_NAME_AND_VERSION
}
_
${
SERVER_GROUP
}
.efi"
generation/30generate-image.sh
View file @
4e23964f
...
...
@@ -119,7 +119,6 @@ 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
}
"
.efi
dracut_output_file
=
dracut-output
# Install the module
...
...
@@ -139,5 +138,5 @@ cd -
additional_dracut_options
=
# Create an initramfs image
rm
-f
"
$dracut_output_file
"
dracut
-c
./dracut.module/dracut.conf
"
$
uefi_image_name
"
-force
"
$additional_dracut_options
"
|&
tee
-a
"
$dracut_output_file
"
echo
New initramfs image:
$(
pwd
)
/
"
$
uefi_image_name
"
dracut
-c
./dracut.module/dracut.conf
"
$
UEFI_IMAGE_NAME
"
-
-force
"
$additional_dracut_options
"
|&
tee
-a
"
$dracut_output_file
"
echo
New initramfs image:
$(
pwd
)
/
"
$
UEFI_IMAGE_NAME
"
generation/40upload-image.sh
View file @
4e23964f
...
...
@@ -10,7 +10,6 @@ cd $GIT_ROOT
source
generation/00env.sh
metadata_file
=
metadata.json
uefi_image_name
=
"
$(
uname
-s
|
tr
'[:upper:]'
'[:lower:]'
)
-
$(
uname
-r
)
_
${
MCA_NAME_AND_VERSION
}
_
${
FLB_NAME_AND_VERSION
}
_
${
SERVER_GROUP
}
"
.efi
sha_list
=
installation/images-sha512.list
hash_comment
=
"# self-compiled kernel, network autoconfig off + dummy ips, rd.neednet=1 LABEL=Root, metadata in shadir, no scan no send"
...
...
@@ -32,9 +31,10 @@ json_metadata="{ \
\"
comment
\"
:
\"
$hash_comment
\"
\
}"
echo
"
$json_metadata
"
>
"
$metadata_file
"
networkcache-upload
--conf
../tls-access-to-shacache/test.cfg
--id
river
--file
"
$
uefi_image_name
"
--metadata
"
$metadata_file
"
networkcache-upload
--conf
../tls-access-to-shacache/test.cfg
--id
river
--file
"
$
UEFI_IMAGE_NAME
"
--metadata
"
$metadata_file
"
echo
$(
sha512sum
"
$uefi_image_name
"
|
cut
-d
' '
-f1
)
"
$hash_comment
"
>>
"
$sha_list
"
echo
$(
sha512sum
"
$UEFI_IMAGE_NAME
"
|
cut
-d
' '
-f1
)
"
$hash_comment
"
>>
"
$sha_list
"
echo
"
$UEFI_IMAGE_NAME
"
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