Compare commits

...

4 commits

Author SHA1 Message Date
Luc
e98a8feece meson.build: add 2025-08-01 21:51:35 +02:00
Luc
d3133e3ed8 features: add 2025-08-01 21:51:03 +02:00
Luc
3b2972d5c4 data/initramfs-init: add 2025-08-01 21:50:43 +02:00
Luc
6a9989d663 README.md: update 2025-08-01 21:50:22 +02:00
7 changed files with 1133 additions and 1 deletions

View file

@ -1,3 +1,3 @@
# zlevis-mkinitfs
A mkinitfs module that builds in automatic decryption of a ZFS root pool in the initramfs with zlevis.
A mkinitfs module that implements automatic decryption of a `ZFS` root pool in the `initramfs` with `zlevis`.

1103
data/initramfs-init Normal file

File diff suppressed because it is too large Load diff

2
data/meson.build Normal file
View file

@ -0,0 +1,2 @@
# Add path of file to data
data += join_paths(meson.current_source_dir(), 'initramfs-init')

3
features/meson.build Normal file
View file

@ -0,0 +1,3 @@
# Add paths of files to features
features += join_paths(meson.current_source_dir(), 'zlevis.files')
features += join_paths(meson.current_source_dir(), 'zlevis.modules')

5
features/zlevis.files Normal file
View file

@ -0,0 +1,5 @@
/usr/bin/zlevis
/usr/bin/zlevis-decrypt
/usr/bin/tpm2*
/usr/bin/jose
/usr/lib/libtss2-tcti*

1
features/zlevis.modules Normal file
View file

@ -0,0 +1 @@
kernel/drivers/char/tpm*

18
meson.build Normal file
View file

@ -0,0 +1,18 @@
# Project definition
project('zlevis-mkinitfs', license: 'GPL3')
# Define mkinitfs features and data dir
features_dir = '/etc/mkinitfs/features.d/'
data_dir = '/usr/share/mkinitfs/'
# Define features and data list
features = []
data = []
# Define subdir with features and subdir with data
subdir('features')
subdir('data')
# Install features in features dir and data in data dir
install_data(features, install_dir: features_dir)
install_data(data, install_dir: data_dir)