aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-10 09:20:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-10 09:22:55 +0000
commit979090f14647d6e6b0c0d399580c22cbf48b0fef (patch)
treede88e4bd526bb80b8cf118d75bcca9a88c8861f4 /initramfs-init.in
parentaf4168c70ec5fc1982c83dc22d75de2ba6aa30d8 (diff)
downloadmkinitfs-979090f14647d6e6b0c0d399580c22cbf48b0fef.tar.bz2
mkinitfs-979090f14647d6e6b0c0d399580c22cbf48b0fef.tar.xz
init: resolve UUID=... devices for cryptsetup
recent version of cryptsetup does not seem to work with UUID=... devices unless udev is used to create /dev/disk/by-uuid symlinks. We work around that by resolving UUID=... to the device.
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index fd3e510..d687e64 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -251,7 +251,7 @@ start_cryptsetup() {
modprobe dm-crypt
if [ -n "$KOPT_cryptroot" ]; then
modprobe dm-crypt
- cryptsetup luksOpen "$KOPT_cryptroot" "$KOPT_cryptdm"
+ cryptsetup luksOpen $(resolve_dev "$KOPT_cryptroot") "$KOPT_cryptdm"
fi
}