diff --git a/diskimage_builder/elements/dkms/post-install.d/97-dkms b/diskimage_builder/elements/dkms/post-install.d/97-dkms index 9c54220b..47019d05 100755 --- a/diskimage_builder/elements/dkms/post-install.d/97-dkms +++ b/diskimage_builder/elements/dkms/post-install.d/97-dkms @@ -8,7 +8,7 @@ fi set -eu set -o pipefail -modules=$(dkms status | tr ',:' ' ' | awk '{ print $1 "/" $2 }') +modules=$(dkms status | tr ',:/' ' ' | awk '{ print $1 "/" $2 }') kernels=$(ls /usr/src/linux-headers-*-*-* -d | sed -e 's|/usr/src/linux-headers-||' || echo "") # NOTE(bnemec): On Fedora, the versions can be found in /usr/src/kernels if [ -z "$kernels" ]; then