https://github.com/tomato42/mkinitcpio-dm-integrity
dm-integrity module for the mkinitcpio initramfs used in Archlinux
https://github.com/tomato42/mkinitcpio-dm-integrity
Last synced: 2 months ago
JSON representation
dm-integrity module for the mkinitcpio initramfs used in Archlinux
- Host: GitHub
- URL: https://github.com/tomato42/mkinitcpio-dm-integrity
- Owner: tomato42
- License: gpl-2.0
- Created: 2020-09-27T17:56:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T18:15:24.000Z (over 4 years ago)
- Last Synced: 2025-02-12T16:55:08.577Z (4 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mkinitcpio-dm-integrity
dm-integrity module for the mkinitcpio initramfs used in ArchlinuxIt's used to mount the dm-integrity volumes in initramfs, so that they
are available for MD-RAID or LVM2 with the root file system.## Installation
1. Copy the `scripts/hooks/dm_integrity` file to `/usr/lib/initcpio/hooks/`
2. Copy the `scritps/install/dm_integrity` file to
`/usr/lib/initcpio/install/`
3. Copy the `scripts/etc/integrity.sh` file to `/etc/`
4. Edit the `/etc/integrity.sh` file to point to partitions with specified
PARTUUIDS and uses the integrity hash (the `-I` option) of the devices
you have created. Use `blkid /dev/sdXY` to get the PARTUUIDs.
5. Edit the `/etc/mkinitcpio.conf` and add the `dm_integrity` in the `HOOKS`
array after the `block` and before the `mdadm_udev` hooks.
Also add the `shutdown` hook to make sure the devices are orderly stopped
on power-off
6. Build the new initramfs: `mkinitcpio -P`