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
9ff2e8d2
Commit
9ff2e8d2
authored
May 12, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installation/dependencies.sh: Add genericity for package handling.
parent
6d3722a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
installation/dependencies.sh
installation/dependencies.sh
+11
-4
installation/packages.sh
installation/packages.sh
+26
-0
No files found.
installation/dependencies.sh
View file @
9ff2e8d2
set
-e
ARCH
=
amd64
PACKAGE_EXTENSION
=
.deb
MCA_VERSION
=
dep--mca-static_1-1
FLUENTBIT_VERSION
=
fluent-bit_1-1
MCA_PACKAGE
=
${
MCA_VERSION
}
_
${
ARCH
}${
PACKAGE_EXTENSION
}
FLUENTBIT_PACKAGE
=
${
FLUENTBIT_VERSION
}
_
${
ARCH
}${
PACKAGE_EXTENSION
}
# basic and dirty detection of the working directory
# it assumes the script is called either from initramfs-with-mca/installation (where fluent-bit_1-1_amd64.deb is located)
# or initramfs-with-mca/ in which case it changes to installation/ so that the package is available
if
[
!
-e
fluent-bit_1-1_amd64.deb
]
;
then
if
[
!
-e
"
$FLUENTBIT_PACKAGE
"
]
;
then
cd
installation/
fi
...
...
@@ -15,6 +22,6 @@ git config --global user.name "Francois Gagnard"
# building initramfs
apt
-y
install
dracut-core dracut dracut-network
wget https://download.opensuse.org/repositories/home:/fg.nxd/Debian_11/
amd64/dep--mca-static_1-1_amd64.deb
apt
-y
install
./
dep--mca-static_1-1_amd64.deb
apt
-y
install
./
fluent-bit_1-1_amd64.deb
wget https://download.opensuse.org/repositories/home:/fg.nxd/Debian_11/
$ARCH
/
"
$MCA_PACKAGE
"
apt
-y
install
./
"
$MCA_PACKAGE
"
apt
-y
install
./
"
$FLUENTBIT_PACKAGE
"
installation/packages.sh
0 → 100644
View file @
9ff2e8d2
# This file is sourced by various other scripts used to install this project.
ARCH
=
amd64
PACKAGE_EXTENSION
=
.deb
MCA_VERSION
=
1-1
FLUENTBIT_VERSION
=
1-1
MCA_PACKAGE_NAME
=
dep--mca-static
FLUENTBIT_PACKAGE_NAME
=
fluent-bit
# used in dracut.module/configure
MCA_NAME_AND_VERSION
=
${
MCA_PACKAGE_NAME
}
_
${
MCA_VERSION
}
FLUENTBIT_NAME_AND_VERSION
=
${
FLUENTBIT_PACKAGE_NAME
}
_
${
FLUENTBIT_VERSION
}
# used in installation/dependencies.sh
APT_UTILITY_PACKAGES
=
"sudo wget tree"
APT_SPECIFIC_PACKAGES
=
"dracut-core dracut dracut-network"
MCA_PACKAGE_FILE
=
${
MCA_NAME_AND_VERSION
}
_
${
ARCH
}${
PACKAGE_EXTENSION
}
FLUENTBIT_PACKAGE_FILE
=
${
FLUENTBIT_NAME_AND_VERSION
}
_
${
ARCH
}${
PACKAGE_EXTENSION
}
URL_PATTERN
=
"https://download.opensuse.org/repositories/home:/fg.nxd/Debian_11/"
MCA_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
ARCH
}
/
${
MCA_PACKAGE_FILE
}
FLUENTBIT_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
ARCH
}
/
${
FLUENTBIT_PACKAGE_FILE
}
# DEBUG 100
#echo MCA_PACKAGE_FILE = ${MCA_PACKAGE_FILE}
#echo FLUENTBIT_PACKAGE_FILE = ${FLUENTBIT_PACKAGE_FILE}
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