Fix configure_libguestfs_tools

Change-Id: Ib67347441942ce910c87581afe5e8aa81a8b0630
This commit is contained in:
Federico Ressi 2021-11-19 13:26:51 +01:00
parent 66c5c822f4
commit ad9a93e675
1 changed files with 6 additions and 2 deletions

View File

@ -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
}