Skip to content
Snippets Groups Projects

Make compatible with cryptsetup's encrypt hook

Closed Tallero Tallero requested to merge tallero/mkinitcpio-archiso:crypto into master
Compare and Show latest version
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -88,7 +88,7 @@ _mnt_fs() {
# shellcheck disable=SC2154
if [ -e "${root}" ]; then
img_loopdev="${root}"
img_loopdev="${root}"
else
img_loopdev="$(losetup --find --show --read-only -- "${img}")"
fi
@@ -146,7 +146,7 @@ _archisodevice() {
archisodevice="/run/cryptdev"
bootmnt_opts="bind"
else
archisodevice="/dev/disk/by-label/${archisolabel}"
archisodevice="/dev/disk/by-uuid/${archisouuid}"
bootmnt_opts="defaults"
fi
}
@@ -172,6 +172,7 @@ run_hook() {
fi
[ -z "${cow_flags}" ] && cow_flags="defaults"
# shellcheck disable=SC2154
[ -z "${cow_directory}" ] && cow_directory="persistent_${archisolabel}/${arch}"
[ -z "${cow_chunksize}" ] && cow_chunksize="8"
Loading