Commit 65e930e3 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Fix some bugs and typos in the dracut module and image building process.

parent 992f7231
......@@ -68,17 +68,17 @@ dracut.module/90metadata-collect/metadata-collect-agent: bin/metadata-collect-ag
dracut.module/90metadata-collect/fluentbit_wendelin.so: lib/fluentbit_wendelin.so
install -m 644 lib/fluentbit_wendelin.so dracut.module/90metadata-collect/fluentbit_wendelin.so
dracut.module/90metadata-collect/fluent-bit: bin/fluent-bit
install -m 744 bin/fluent-bit dracut.module/90metadata-collect-agent/fluent-bit
install -m 744 bin/fluent-bit dracut.module/90metadata-collect/fluent-bit
dracut-module: dracut.module/90metadata-collect/collect.sh dracut.module/90metadata-collect/flb.conf dracut.module/90metadata-collect/metadata-collect-agent dracut.module/90metadata-collect/fluentbit_wendelin.so dracut.module/90metadata-collect/fluent-bit
install-dracut-module:
install -d /usr/lib/dracut/modules.d/90metadata-collect
install -m 744 dracut.module/90metadata-collect/collect.sh /usr/lib/dracut/module.d/90metadata-collect/
install -m 644 dracut.module/90metadata-collect/flb.conf /usr/lib/dracut/module.d/90metadata-collect/
install -m 744 dracut.module/90metadata-collect/metadata-collect-agent /usr/lib/dracut/module.d/90metadata-collect/
install -m 644 dracut.module/90metadata-collect/fluentbit_wendelin.so /usr/lib/dracut/module.d/90metadata-collect/
install -m 744 dracut.module/90metadata-collect/fluent-bit /usr/lib/dracut/module.d/90metadata-collect/
sudo install -d /usr/lib/dracut/module.d/90metadata-collect
sudo install -m 744 dracut.module/90metadata-collect/collect.sh /usr/lib/dracut/module.d/90metadata-collect/
sudo install -m 644 dracut.module/90metadata-collect/flb.conf /usr/lib/dracut/module.d/90metadata-collect/
sudo install -m 744 dracut.module/90metadata-collect/metadata-collect-agent /usr/lib/dracut/module.d/90metadata-collect/
sudo install -m 644 dracut.module/90metadata-collect/fluentbit_wendelin.so /usr/lib/dracut/module.d/90metadata-collect/
sudo install -m 744 dracut.module/90metadata-collect/fluent-bit /usr/lib/dracut/module.d/90metadata-collect/
uninstall-dracut-module:
rm -f dracut.module/90metadata-collect/collect.sh
......@@ -88,13 +88,13 @@ uninstall-dracut-module:
rm -f dracut.module/90metadata-collect/fluent-bit
clean-dracut-module: uninstall-dracut-module
rm -rf /usr/lib/dracut/module.d/90metadata-collect
sudo rm -rf /usr/lib/dracut/module.d/90metadata-collect
dracut-image: dracut-module install-dracut-module
mkdir -p build/
cp installation/unsigned-dracut-image.sh build/
cd build/ ;\
sudo ./unsigned-dracut-image
sudo ./unsigned-dracut-image.sh
uefi-keys/:
......@@ -116,14 +116,14 @@ uefi-keys/:
generate-keys: uefi-keys/
install-keys:
install -d /etc/uefi-keys/
cp uefi-keys/DB.cer /etc/uefi-keys/db.cer
cp uefi-keys/DB.crt /etc/uefi-keys/db.crt
cp uefi-keys/DB.key /etc/uefi-keys/db.key
sudo install -d /etc/uefi-keys/
sudo cp uefi-keys/DB.cer /etc/uefi-keys/db.cer
sudo cp uefi-keys/DB.crt /etc/uefi-keys/db.crt
sudo cp uefi-keys/DB.key /etc/uefi-keys/db.key
uninstall-keys:
shred -ufz /etc/uefi-keys/*
rm -rf /etc/uefi-keys/
sudo shred -ufz /etc/uefi-keys/*
sudo rm -rf /etc/uefi-keys/
clean-keys: uninstall-keys
shred -ufz uefi-keys/*
......
......@@ -3,7 +3,10 @@ apt -y install git vim tree sudo
# to add a <user> to the sudo list:
# su -
# usermod -a -G sudo <user>
# su <user>
# visudo
# -> add:
# <user> ALL=(ALL) NOPASSWD:ALL
# at the end of the file
# ACTUAL DEPENDENCIES
# installing miscellaneous useful packages
......
#!/bin/bash
rm -rf dracut_tmp
mkdir dracut_tmp
......
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