diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 65ae602..0b73b2f 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -11,9 +11,13 @@ function install_tobiko_deps { function configure_libguestfs_tools { + local target_path if is_ubuntu; then - sudo dpkg-statoverride --update --add root root 0644 \ - /boot/vmlinuz-`uname -r` + target_path=/boot/vmlinuz-`uname -r` + if ! dpkg-statoverride --list "${target_path}"; then + sudo dpkg-statoverride --update --add root root 0644 \ + "${target_path}" + fi fi }