From 363fdaf8ce8131a26787cb8aed9848f11d898d89 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Tue, 19 Aug 2014 13:08:15 +0200 Subject: [PATCH] labs: tweak dpkg-statoveride call Turn code comment into log output, and check the new permission settings after having changed them. Change-Id: Ibf136a3193a6520989a6875afd933095ba70aa76 --- labs/scripts/setup_nova_compute.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/labs/scripts/setup_nova_compute.sh b/labs/scripts/setup_nova_compute.sh index 435f95ba..24fbaea0 100755 --- a/labs/scripts/setup_nova_compute.sh +++ b/labs/scripts/setup_nova_compute.sh @@ -15,8 +15,12 @@ indicate_current_auto echo "Installing nova for compute node." sudo apt-get install -y nova-compute-kvm python-guestfs -# To make the current kernel readable, run: -sudo dpkg-statoverride --update --add root root 0644 /boot/vmlinuz-$(uname -r) +echo "Making the current kernel image world-readable." +sudo dpkg-statoverride \ + --update \ + --add root root 0644 "/boot/vmlinuz-$(uname -r)" +# Read the new setting into the log file +sudo dpkg-statoverride --list "/boot/vmlinuz*" # Remove SQLite database created by Ubuntu package for nova. sudo rm -v /var/lib/nova/nova.sqlite