diff --git a/bin/initoverlayfs-install b/bin/initoverlayfs-install index f4b60bc..5f2616f 100755 --- a/bin/initoverlayfs-install +++ b/bin/initoverlayfs-install @@ -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. diff --git a/lib/dracut/modules.d/81initoverlayfs/module-setup.sh b/lib/dracut/modules.d/81initoverlayfs/module-setup.sh index dc98511..ee467d9 100644 --- a/lib/dracut/modules.d/81initoverlayfs/module-setup.sh +++ b/lib/dracut/modules.d/81initoverlayfs/module-setup.sh @@ -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"