From a030e9795f374bd78c43b8a3fc6ed131e24a6634 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Mon, 17 May 2021 11:04:52 +0200 Subject: [PATCH] Allow virt-customize to work on Ubuntu hosts as regular user Ensure /boot/vmlinuz file can be read from regular users Change-Id: I40628231b9d74e9786509675a97242df717910c8 --- devstack/plugin.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 6e864f6..c5a9730 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -86,6 +86,15 @@ function configure_tobiko_glance { iniset_nonempty "${tobiko_conf_file}" glance image_dir \ "${TOBIKO_GLANCE_IMAGE_DIR}" + + ensure_boot_files_permissions +} + + +function ensure_boot_files_permissions { + if [ -f /boot/vmlinuz ]; then + sudo chmod ugo+r /boot/vmlinuz + fi }