Commit c06241c5 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation/:

- Create the directory. Move the relevant files in it.
- Add a script to install the dependencies and a Debian package.

Add README.md and TODO.txt
parent 2c024513
# Read me
The current version does not support signed initramfs image. (Work In Progress!)
## Workflow
### Install dependencies
Run
sudo ./installation/dependencies.sh
### Install the dracut module
Run
sudo ./installation/install.sh
Security:
- Design a default behavior to sign the keys?
- Distribute the keys in a secured way.
Upstream:
- Make fluent-bit package work again from OBS so that it can be downloaded directly.
set -e
# 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
cd installation/
fi
# useful tools
apt -y install sudo git wget tree
git config --global user.email "francois.gagnard@nexedi.com"
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
set -e
# basic and dirty detection of the working directory
# it assumes the script is called either from initramfs-with-mca (which dracut.module/ is a subdirectory of)
# or initramfs-with-mca/installation in which case it goes to the parent directory so that dracut.module/ is available
if [ ! -d dracut.module ]; then
cd ..
fi
# This script assumes to be run by the root user (with /sbin in the path).
# Install the module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment