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
326994f1
Commit
326994f1
authored
Nov 17, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Separate MCA and plugin package.
parent
afc304cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
generation/00env.sh
generation/00env.sh
+6
-0
generation/10install-dependencies.sh
generation/10install-dependencies.sh
+7
-4
No files found.
generation/00env.sh
View file @
326994f1
...
@@ -8,8 +8,10 @@ PROJECT_DIR=$GIT_ROOT
...
@@ -8,8 +8,10 @@ PROJECT_DIR=$GIT_ROOT
## Packages
## Packages
MCA_PACKAGE_NAME
=
mca--static
MCA_PACKAGE_NAME
=
mca--static
FLB_PACKAGE_NAME
=
fluent-bit
FLB_PACKAGE_NAME
=
fluent-bit
PLG_PACKAGE_NAME
=
plugin-fluentbit-to-wendelin
MCA_VERSION
=
0.3.1+0.2+1.0.293+dep-1
MCA_VERSION
=
0.3.1+0.2+1.0.293+dep-1
FLB_VERSION
=
1.9.7+1.0.279+dep-1
FLB_VERSION
=
1.9.7+1.0.279+dep-1
PLG_VERSION
=
0.2+1.0.293+nodep-1
SIGNING_KEY_NAME
=
db.key
SIGNING_KEY_NAME
=
db.key
...
@@ -17,9 +19,13 @@ SIGNING_KEY_NAME=db.key
...
@@ -17,9 +19,13 @@ SIGNING_KEY_NAME=db.key
# used mainly in dracut.module/configure
# used mainly in dracut.module/configure
MCA_NAME_AND_VERSION
=
${
MCA_PACKAGE_NAME
}
_
${
MCA_VERSION
}
MCA_NAME_AND_VERSION
=
${
MCA_PACKAGE_NAME
}
_
${
MCA_VERSION
}
FLB_NAME_AND_VERSION
=
${
FLB_PACKAGE_NAME
}
_
${
FLB_VERSION
}
FLB_NAME_AND_VERSION
=
${
FLB_PACKAGE_NAME
}
_
${
FLB_VERSION
}
PLG_NAME_AND_VERSION
=
${
PLG_PACKAGE_NAME
}
_
${
PLG_VERSION
}
MCA_PACKAGE_FILE
=
${
MCA_NAME_AND_VERSION
}
_amd64.deb
MCA_PACKAGE_FILE
=
${
MCA_NAME_AND_VERSION
}
_amd64.deb
FLB_PACKAGE_FILE
=
${
FLB_NAME_AND_VERSION
}
_amd64.deb
FLB_PACKAGE_FILE
=
${
FLB_NAME_AND_VERSION
}
_amd64.deb
PLG_PACKAGE_FILE
=
${
PLG_NAME_AND_VERSION
}
_amd64.deb
URL_PATTERN
=
"https://download.opensuse.org/repositories/home:VIFIBnexedi/Debian_11/amd64/"
URL_PATTERN
=
"https://download.opensuse.org/repositories/home:VIFIBnexedi/Debian_11/amd64/"
TMP_URL_PATTERN
=
"https://download.opensuse.org/repositories/home:oph.nxd/Debian_11/amd64/"
MCA_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
MCA_PACKAGE_FILE
}
MCA_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
MCA_PACKAGE_FILE
}
FLB_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
FLB_PACKAGE_FILE
}
FLB_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
FLB_PACKAGE_FILE
}
PLG_PACKAGE_URL
=
${
TMP_URL_PATTERN
}
/
${
PLG_PACKAGE_FILE
}
generation/10install-dependencies.sh
View file @
326994f1
...
@@ -19,13 +19,16 @@ apt -y install dracut-core dracut dracut-network sbsigntool pip
...
@@ -19,13 +19,16 @@ apt -y install dracut-core dracut dracut-network sbsigntool pip
pip
install
slapos.libnetworkcache
pip
install
slapos.libnetworkcache
rm
-f
*
"
$MCA_PACKAGE_NAME
"
*
rm
-f
*
"
$MCA_PACKAGE_NAME
"
*
rm
-f
*
"
$FLB_PACKAGE_NAME
"
*
rm
-f
*
"
$FLB_PACKAGE_NAME
"
*
apt
-y
remove
"
$MCA_PACKAGE_NAME
"
"
$FLB_PACKAGE_NAME
"
||
true
rm
-f
*
"
$PLG_PACKAGE_NAME
"
*
apt
-y
remove
"
$MCA_PACKAGE_NAME
"
"
$FLB_PACKAGE_NAME
"
"
$PLG_PACKAGE_NAME
"
||
true
wget
"
$MCA_PACKAGE_URL
"
wget
"
$MCA_PACKAGE_URL
"
wget
"
$FLB_PACKAGE_URL
"
wget
"
$FLB_PACKAGE_URL
"
wget
"
$PLG_PACKAGE_URL
"
apt
-y
install
./
"
$MCA_PACKAGE_FILE
"
apt
-y
install
./
"
$MCA_PACKAGE_FILE
"
apt
-y
install
./
"
$FLB_PACKAGE_FILE
"
apt
-y
install
./
"
$FLB_PACKAGE_FILE
"
apt
-y
install
./
"
$PLG_PACKAGE_FILE
"
MCA_CONF_PATH
=
"/opt/
${
MCA
_PACKAGE_NAME
}
/etc"
FLB_CONF_PATH
=
"/opt/
${
PLG
_PACKAGE_NAME
}
/etc"
CONF_REGEX
=
"s|%WENDELIN_URL%|
${
WENDELIN_URL
}
|g;s|%WENDELIN_PWD%|
${
WENDELIN_PWD
}
|g"
CONF_REGEX
=
"s|%WENDELIN_URL%|
${
WENDELIN_URL
}
|g;s|%WENDELIN_PWD%|
${
WENDELIN_PWD
}
|g"
sed
"
$CONF_REGEX
"
"
${
MCA_CONF_PATH
}
/flb.conf.in"
>
"
${
MCA
_CONF_PATH
}
/flb.conf"
sed
"
$CONF_REGEX
"
"
${
FLB_CONF_PATH
}
/flb.conf.in"
>
"
${
FLB
_CONF_PATH
}
/flb.conf"
echo
"Created
${
MCA_CONF_PATH
}
/flb.conf from template
${
MCA
_CONF_PATH
}
/flb.conf.in"
echo
"Created
${
FLB_CONF_PATH
}
/flb.conf from template
${
FLB
_CONF_PATH
}
/flb.conf.in"
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