diff --git a/files/nova_kernel_permissions.sh b/files/nova_kernel_permissions similarity index 86% rename from files/nova_kernel_permissions.sh rename to files/nova_kernel_permissions index 00808715..85bb3cf4 100644 --- a/files/nova_kernel_permissions.sh +++ b/files/nova_kernel_permissions @@ -1,4 +1,4 @@ -#/bin/sh +#!/bin/sh # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,4 +17,4 @@ version="$1" if [ -z "$version" ]; then exit 0 fi -exec dpkg-statoverride --update --add root nova 0640 "/boot/vmlinuz-${version}" +exec dpkg-statoverride --force --update --add root nova 0640 "/boot/vmlinuz-${version}" diff --git a/tasks/drivers/kvm/nova_kernel_permissions.yml b/tasks/drivers/kvm/nova_kernel_permissions.yml index 2cf5d9fe..755fa956 100644 --- a/tasks/drivers/kvm/nova_kernel_permissions.yml +++ b/tasks/drivers/kvm/nova_kernel_permissions.yml @@ -34,6 +34,6 @@ - name: Script installed to make future kernels readable to nova group/user copy: - src: 'nova_kernel_permissions.sh' - dest: '/etc/kernel/postinst.d/nova_kernel_permissions.sh' + src: 'nova_kernel_permissions' + dest: '/etc/kernel/postinst.d/nova_kernel_permissions' mode: '0755'