main/cryptsetup: also read post_mount from confd

closes #13891
This commit is contained in:
psykose 2023-05-25 06:33:50 +00:00
parent d61c7d41f0
commit edcf1cf40e
2 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cryptsetup
pkgver=2.6.1
pkgrel=4
pkgrel=5
pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
url="https://gitlab.com/cryptsetup/cryptsetup"
arch="all"
@ -76,6 +76,6 @@ libs() {
sha512sums="
91f4570e7398f3aa68d4f029d734731867530f839634a1a8b23b3722b32ecfd41266e2da0404360881557022b092857eed761840f233ce9676348d426b3682a0 cryptsetup-2.6.1.tar.gz
5315589102d6e7fac5fdee1230a4012d5548c1a7193a05a310eacdeaf709857d370359cae7ea437e3ca0591ffdb848c205c14d42017a1c5445cadaec2e8eb4a1 dmcrypt.initd
252d6c3c9161b62db1652b9ed75377d1eb9a3ac821bde94b9e4935e97e2486196e59f415085b382fd406ba1b47a20be60db3f1cfe57afb26028abf314f6ea2b1 dmcrypt.initd
74422d5e1614b43af894ea01da1ea80d805ec7f77981cbb80a6b1a4becad737a8825d7269812499095a7f50d39fa7da5bf4e4edae63529b1fe87b9176943a733 dmcrypt.confd
"

View File

@ -220,6 +220,12 @@ dm_crypt_execute() {
eval "${pre_mount}" > /dev/null
ewend $? || cryptfs_status=1
fi
if [ -n "${post_mount}" ] ; then
dev="/dev/mapper/${target}"
eval ebegin \"" post_mount: ${post_mount}"\"
eval "${post_mount}" > /dev/null
ewend $? || cryptfs_status=1
fi
fi
}