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
929fc154
Commit
929fc154
authored
Aug 09, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installation/: Fix bugs in dracut.module/dracut.conf.in processing.
parent
da399677
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
21 deletions
+22
-21
installation/dependencies.sh
installation/dependencies.sh
+9
-9
installation/env.sh
installation/env.sh
+12
-11
installation/install.sh
installation/install.sh
+1
-1
No files found.
installation/dependencies.sh
View file @
929fc154
...
...
@@ -4,26 +4,26 @@ set -e
# get the root of the git repository (requires git to be installed)
GIT_ROOT
=
`
git rev-parse
--show-toplevel
`
cd
${
GIT_ROOT
}
/installation/
cd
"
$GIT_ROOT
"
/installation
# define useful variables
source
env.sh
# useful tools
apt
-y
install
$
{
APT_UTILITY_PACKAGES
}
apt
-y
install
$
APT_UTILITY_PACKAGES
git config
--global
user.email
"ophelie.gagnard@nexedi.com"
git config
--global
user.name
"Ophelie Gagnard"
# building initramfs
apt
-y
install
${
APT_SPECIFIC_PACKAGES
}
rm
-f
${
MCA_PACKAGE_FILE
}
wget
${
MCA_PACKAGE_URL
}
wget
${
FLUENTBIT_PACKAGE_URL
}
||
true
# TMP
apt
-y
install
$APT_SPECIFIC_PACKAGES
rm
-f
"
$MCA_PACKAGE_FILE
"
rm
-f
"
$FLUENTBIT_PACKAGE_FILE
"
wget
"
$MCA_PACKAGE_URL
"
wget
"
$FLUENTBIT_PACKAGE_URL
"
apt
-y
install
./
"
$MCA_PACKAGE_FILE
"
apt
-y
install
./
"
$FLUENTBIT_PACKAGE_FILE
"
MCA_CONF_PATH
=
/opt/
${
MCA_NAME_AND_VERSION
}
/etc/
#cp flb.conf.in $MCA_CONF_PATH # temporary fix
MCA_CONF_PATH
=
"/opt/
${
MCA_NAME_AND_VERSION
}
/etc"
CONF_REGEX
=
"s|%WENDELIN_URL%|
${
WENDELIN_URL
}
|g;s|%WENDELIN_PWD%|
${
WENDELIN_PWD
}
|g;s|%WENDELIN_REFERENCE%|
${
WENDELIN_REFERENCE
}
|g"
sed
$CONF_REGEX
$MCA_CONF_PATH
/flb.conf.in
>
$MCA_CONF_PATH
/flb.conf
sed
"
$CONF_REGEX
"
"
${
MCA_CONF_PATH
}
/flb.conf.in"
>
"
${
MCA_CONF_PATH
}
/flb.conf"
echo
"Created
${
MCA_CONF_PATH
}
/flb.conf from template
${
MCA_CONF_PATH
}
/flb.conf.in"
installation/env.sh
View file @
929fc154
...
...
@@ -5,8 +5,8 @@ GIT_ROOT=`git rev-parse --show-toplevel`
PROJECT_DIR
=
$GIT_ROOT
#
TO BE MODIFIED BY USERS:
#
p
ackages
#
## TO BE MODIFIED BY USERS ###
#
# P
ackages
MCA_PACKAGE_NAME
=
dep--mca--static
FLUENTBIT_PACKAGE_NAME
=
dep--fluent-bit
MCA_VERSION
=
1-1
...
...
@@ -14,13 +14,14 @@ FLUENTBIT_VERSION=1-1
TARGET_DISTRIBUTION
=
Debian_11
ARCH
=
amd64
PACKAGE_EXTENSION
=
.deb
#
w
endelin
#
# W
endelin
WENDELIN_URL
=
https://softinst157546.host.vifib.net/erp5/portal_ingestion_policies/metadata_upload
WENDELIN_PWD
=
qxrfkwod
WENDELIN_REFERENCE
=
c-light-data_05
#
k
eys and certificates
#
# K
eys and certificates
SERVER_GROUP
=
douai
CERT_NAME
=
db.cer
# could be crt but does not work on every UEFI
# sometimes .cer works, sometimes .crt works... it depends on the UEFI?
CERT_NAME
=
db.crt
SIGNING_KEY_NAME
=
db.key
...
...
@@ -42,15 +43,15 @@ FLUENTBIT_PACKAGE_URL=${URL_PATTERN}/${FLUENTBIT_PACKAGE_FILE}
EFI_PARTITION_MOUNT_POINT
=
/boot/efi/
RELATIVE_EFI_IMAGE_DIR
=
/EFI/Linux/
EFI_IMAGE_DIR
=
${
EFI_PARTITION_MOUNT_POINT
}
/
${
RELATIVE_EFI_IMAGE_DIR
}
EFI_PARITITON_MOUNT_POINT
=
$(
realpath
-m
$EFI_PARTITION_MOUNT_POINT
)
RELATIVE_EFI_IMAGE_DIR
=
$(
realpath
-m
$RELATIVE_EFI_IMAGE_DIR
)
EFI_IMAGE_DIR
=
$(
realpath
-m
$EFI_IMAGE_DIR
)
EFI_PARITITON_MOUNT_POINT
=
$(
realpath
-m
"
$EFI_PARTITION_MOUNT_POINT
"
)
RELATIVE_EFI_IMAGE_DIR
=
$(
realpath
-m
"
$RELATIVE_EFI_IMAGE_DIR
"
)
EFI_IMAGE_DIR
=
$(
realpath
-m
"
$EFI_IMAGE_DIR
"
)
dracut_output_file
=
dracut-output
# used mainly in uefi-keys/make_keys.sh
CERT_DIR
=
public-certificates
CERT_DIR
=
uefi-keys/
public-certificates
KEYS_DIR
=
private-keys
PUBLIC_CERT_DIR
=
${
PROJECT_DIR
}
/
${
CERT_DIR
}
/
${
SERVER_GROUP
}
PRIVATE_KEYS_DIR
=
${
PROJECT_DIR
}
/
${
KEYS_DIR
}
/
${
SERVER_GROUP
}
PUBLIC_CERT_DIR
=
"
$(
realpath
-m
\"
${
PUBLIC_CERT_DIR
}
\"
)
"
PRIVATE_KEYS_DIR
=
"
$(
realpath
-m
\"
${
PRIVATE_KEYS_DIR
}
\"
)
"
PUBLIC_CERT_DIR
=
$(
realpath
-m
"
$PUBLIC_CERT_DIR
"
)
PRIVATE_KEYS_DIR
=
$(
realpath
-m
"
$PRIVATE_KEYS_DIR
"
)
installation/install.sh
View file @
929fc154
...
...
@@ -125,7 +125,7 @@ make install
cd
-
# Generation of dracut.module/dracut.conf
dracut_conf_regex
=
"s|%P
UBLIC_CERT_DIR%|
${
PUBLIC_CERT_DIR
}
|g;s|%CERT_NAME%|
${
CERT_NAME
}
|;s|%SIGNING_KEY_NAME%|
${
SIGNING_KEY_NAME
}
|g;s||
|g;s|%ROOT_PARTITION_ID%|
${
ROOT_PARTITION_ID
}
|g;s|%DEFAULT_INTERFACE%|
${
DEFAULT_INTERFACE
}
|g;s|%DEFAULT_ROUTER%|
${
DEFAULT_ROUTER
}
|g;s|%DEFAULT_IP%|
${
DEFAULT_IP
}
|g;s|%FORMATTED_NETMASK%|
${
FORMATTED_NETMASK
}
|g;s|%HOSTNAME%|
${
HOSTNAME
}
|g"
dracut_conf_regex
=
"s|%P
ROJECT_DIR%|
${
PROJECT_DIR
}
|g;s|%PUBLIC_CERT_DIR%|
${
PUBLIC_CERT_DIR
}
|g;s|%PRIVATE_KEYS_DIR%|
${
PRIVATE_KEYS_DIR
}
|g;s|%CERT_NAME%|
${
CERT_NAME
}
|;s|%SIGNING_KEY_NAME%|
${
SIGNING_KEY_NAME
}
|g;s|%ROOT_PARTITION_ID%|
${
ROOT_PARTITION_ID
}
|g;s|%DEFAULT_INTERFACE%|
${
DEFAULT_INTERFACE
}
|g;s|%DEFAULT_ROUTER%|
${
DEFAULT_ROUTER
}
|g;s|%DEFAULT_IP%|
${
DEFAULT_IP
}
|g;s|%FORMATTED_NETMASK%|
${
FORMATTED_NETMASK
}
|g;s|%HOSTNAME%|
${
HOSTNAME
}
|g"
cd
dracut.module
sed
"
${
dracut_conf_regex
}
"
dracut.conf.in
>
dracut.conf
cd
-
...
...
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