Message ID | 20250226095921.168962-2-ch@denx.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Initramfs-crypt-hook patches, encryption on update | expand |
On 26.02.25 10:59, Claudius Heine wrote: > In case the mount path does not exist, try to create it instead of > failing. > Please specify the "why" here. As you know, (almost) every commit message should cover that, and obvious ones do not even have to talk about how they do that. Jan > Signed-off-by: Claudius Heine <ch@denx.de> > --- > .../initramfs-crypt-hook/files/local-bottom-complete | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete b/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete > index b991cb4..80553d1 100644 > --- a/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete > +++ b/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete > @@ -41,6 +41,7 @@ mount_partition() { > partition_mountpoint=$2 > [ "$debug" = "y" ] && echo "mount device: '$partition_dev_path' to '$partition_mountpoint'" > if ! mountpoint -q "${partition_mountpoint}"; then > + mkdir -p "${partition_mountpoint}" > if ! mount -t "$(get_fstype "${partition_dev_path}")" "${partition_dev_path}" \ > "${partition_mountpoint}"; then > panic "Can't mount partition '${partition_dev_path}'!"
diff --git a/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete b/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete index b991cb4..80553d1 100644 --- a/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete +++ b/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete @@ -41,6 +41,7 @@ mount_partition() { partition_mountpoint=$2 [ "$debug" = "y" ] && echo "mount device: '$partition_dev_path' to '$partition_mountpoint'" if ! mountpoint -q "${partition_mountpoint}"; then + mkdir -p "${partition_mountpoint}" if ! mount -t "$(get_fstype "${partition_dev_path}")" "${partition_dev_path}" \ "${partition_mountpoint}"; then panic "Can't mount partition '${partition_dev_path}'!"
In case the mount path does not exist, try to create it instead of failing. Signed-off-by: Claudius Heine <ch@denx.de> --- .../initramfs-crypt-hook/files/local-bottom-complete | 1 + 1 file changed, 1 insertion(+)