From 0f903b4aea8894363a129b2c43b740758509d897 Mon Sep 17 00:00:00 2001 From: IslandLife Date: Fri, 12 Jun 2020 12:57:27 +0100 Subject: [PATCH] Ensure the initramfs filesystem directory /usr/bin exists before attempting subsequent copy Ref: initramfs hook zfsunlock creates initramfs /usr/bin as as file and not directory #10434 Modeled on the similar mkdir statement for inirtramfs /etc in the hook zfs --- contrib/initramfs/hooks/zfsunlock.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/initramfs/hooks/zfsunlock.in b/contrib/initramfs/hooks/zfsunlock.in index c8ae86363981..2f5f2516957e 100644 --- a/contrib/initramfs/hooks/zfsunlock.in +++ b/contrib/initramfs/hooks/zfsunlock.in @@ -15,4 +15,5 @@ esac . /usr/share/initramfs-tools/hook-functions +mkdir -p "$DESTDIR/usr/bin/" copy_exec /usr/share/initramfs-tools/zfsunlock /usr/bin