Skip to content

Commit

Permalink
Merge pull request #74 from martinmcconnell/VROOM-16770
Browse files Browse the repository at this point in the history
Integrate veritysetup format command for dm-verity hash generation
  • Loading branch information
ericcurtin authored Mar 7, 2024
2 parents 1bc9ff2 + f93e7ec commit 3749f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/initoverlayfs-install
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ exec_erofs() {
popd
rm -f "${INITRAMFS_DIR}/initoverlayfs-$kver.img"
mkfs.erofs $erofs_compression "${INITRAMFS_DIR}/initoverlayfs-$kver.img" ${INITRAMFS_DUMP_DIR}
if false; then
veritysetup format "${INITRAMFS_DIR}/initoverlayfs-$kver.img" "/etc/initoverlayfs-hash-$kver.img"
fi
}

# Support for ext4 is currently under development.
Expand Down
1 change: 1 addition & 0 deletions lib/dracut/modules.d/81initoverlayfs/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ depends() {

install() {
inst_multiple -o /etc/initoverlayfs.conf /usr/sbin/initoverlayfs \
"/etc/initoverlayfs-hash-$kernel.img" \
"$systemdsystemunitdir/pre-initoverlayfs.target" \
"$systemdsystemunitdir/pre-initoverlayfs.service" \
"$systemdsystemunitdir/pre-initoverlayfs-switch-root.service"
Expand Down

0 comments on commit 3749f08

Please sign in to comment.