Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
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
metadata-collect-agent
Commits
1d4e6550
Commit
1d4e6550
authored
Feb 02, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Implement keys management.
parent
d3a2efff
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
7 deletions
+59
-7
Makefile
Makefile
+57
-5
dracut.module/dracut.conf
dracut.module/dracut.conf
+2
-2
installation/mkkeys.sh
installation/mkkeys.sh
+0
-0
No files found.
Makefile
View file @
1d4e6550
...
...
@@ -46,9 +46,14 @@ install-no-dracut:
install
-d
$(DESTDIR)$(PREFIX)
/lib
install
-m
644 lib/fluentbit_wendelin.so
$(DESTDIR)$(PREFIX)
/lib/fluentbit_wendelin.so
uninstall-no-dracut
:
rm
-rf
$(DESTDIR)$(PREFIX)
/bin
rm
-rf
$(DESTDIT)$(PREFIX)
/etc
rm
-rf
$(DESTDIR)$(PREFIX)
/lib
no-dracut
:
bin/metadata-collect-agent lib/fluentbit_wendelin.so bin/fluent-bit
clean-no-dracut
:
clean-no-dracut
:
uninstall-no-dracut
rm
-rf
build/
rm
-rf
bin/
rm
-rf
lib/
...
...
@@ -75,14 +80,61 @@ install-dracut-module:
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/
clean-dracut
:
rm
-rf
/usr/lib/dracut/module.d/90metadata-collect
uninstall-dracut-module
:
rm
-f
dracut.module/90metadata-collect/collect.sh
rm
-f
dracut.module/90metadata-collect/flb.conf
rm
-f
dracut.module/90metadata-collect/metadata-collect-agent
rm
-f
dracut.module/90metadata-collect/fluentbit_wendelin.so
rm
-f
dracut.module/90metadata-collect/fluent-bit
clean
:
clean-no-dracut clean-dracut
clean-dracut
:
uninstall-dracut-module
rm
-rf
/usr/lib/dracut/module.d/90metadata-collect
uefi-keys/
:
mkdir
-p
build/uefi-keys/
;
\
cp
installation/mkkeys.sh build/uefi-keys/
;
\
cd
build/uefi-keys/
;
\
./mkkeys.sh
install
-d
uefi-keys/
install
-d
KEYS_to-save-elswhere-and-shred/
cp
build/uefi-keys/DB.cer uefi-keys/
cp
build/uefi-keys/DB.crt uefi-keys/
cp
build/uefi-keys/DB.key uefi-keys/
rm
-f
build/uefi-keys/mkkeys.sh
mv
build/uefi-keys/
*
KEYS_to-save-elswhere-and-shred/
# TO USE YOUR OWN KEYS (recommanded), CREATE THE uefi-keys DIRECTORY *BEFORE* USING MAKE
generate-keys
:
uefi-keys/
install-keys
:
uninstall-keys
:
clean-keys
:
shred
-uf
uefi-keys/
*
rm
-rf
uefi-keys/
shred
-uf
KEYS_to-save-elsewhere-and-shred/
*
rm
-rf
KEYS_to-save-elsewhere-and-shred/
*
shred
-uf
uefi-keys/DB.cer uefi-keys/DB.crt uefi-keys/DB.key
shred
-uf
KEYS_to-save-elsewhere-and-shred/DB.auth
shred
-uf
KEYS_to-save-elsewhere-and-shred/DB.cer
shred
-uf
KEYS_to-save-elsewhere-and-shred/DB.crt
shred
-uf
KEYS_to-save-elsewhere-and-shred/DB.esl
shred
-uf
KEYS_to-save-elsewhere-and-shred/DB.key
shred
-uf
KEYS_to-save-elsewhere-and-shred/KEK.auth
shred
-uf
KEYS_to-save-elsewhere-and-shred/KEK.cer
shred
-uf
KEYS_to-save-elsewhere-and-shred/KEK.crt
shred
-uf
KEYS_to-save-elsewhere-and-shred/KEK.esl
shred
-uf
KEYS_to-save-elsewhere-and-shred/KEK.key
shred
-uf
KEYS_to-save-elsewhere-and-shred/PK.auth
shred
-uf
KEYS_to-save-elsewhere-and-shred/PK.cer
shred
-uf
KEYS_to-save-elsewhere-and-shred/PK.crt
shred
-uf
KEYS_to-save-elsewhere-and-shred/PK.esl
shred
-uf
KEYS_to-save-elsewhere-and-shred/PK.key
shred
-uf
KEYS_to-save-elsewhere-and-shred/myGUID.txt
shred
-uf
KEYS_to-save-elsewhere-and-shred/noPK.auth
shred
-uf
KEYS_to-save-elsewhere-and-shred/DB.auth
clean
:
clean-no-dracut clean-dracut clean-keys
.PHONY
:
no-dracut install-no-dracut
clean-no-dracut dracut-module install-dracut-module
.PHONY
:
no-dracut install-no-dracut
uninstall-no-dracut clean-no-dracut dracut-module install-dracut-module uninstall-dracut-module generate-keys install-keys uninstall-keys clean-keys
dracut.module/dracut.conf
View file @
1d4e6550
...
...
@@ -5,6 +5,6 @@ reproducible=yes
compress
=
xz
uefi
=
yes
uefi_stub
=/
usr
/
lib
/
systemd
/
boot
/
efi
/
linuxx64
.
efi
.
stub
uefi_secureboot_cert
=/
etc
/
uefi
-
key
/
db
.
crt
uefi_secureboot_key
=/
etc
/
uefi
-
key
/
db
.
key
uefi_secureboot_cert
=/
etc
/
uefi
-
key
s
/
db
.
crt
uefi_secureboot_key
=/
etc
/
uefi
-
key
s
/
db
.
key
add_dracutmodules
=
"metadata-collect"
mkkeys.sh
→
installation/
mkkeys.sh
View file @
1d4e6550
File moved
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