Skip to content

Commit a1ec79d

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Support last version of upcoming rootwrap changes"
2 parents 94cb960 + 76a9eaf commit a1ec79d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,19 +1237,19 @@ cp -p $NOVA_DIR/etc/nova/policy.json $NOVA_CONF_DIR
12371237
# If Nova ships the new rootwrap filters files, deploy them
12381238
# (owned by root) and add a parameter to $NOVA_ROOTWRAP
12391239
ROOTWRAP_SUDOER_CMD="$NOVA_ROOTWRAP"
1240-
if [[ -d $NOVA_DIR/etc/nova/rootwrap ]]; then
1240+
if [[ -d $NOVA_DIR/etc/nova/rootwrap.d ]]; then
12411241
# Wipe any existing rootwrap.d files first
12421242
if [[ -d $NOVA_CONF_DIR/rootwrap.d ]]; then
12431243
sudo rm -rf $NOVA_CONF_DIR/rootwrap.d
12441244
fi
12451245
# Deploy filters to /etc/nova/rootwrap.d
12461246
sudo mkdir -m 755 $NOVA_CONF_DIR/rootwrap.d
1247-
sudo cp $NOVA_DIR/etc/nova/rootwrap/*.filters $NOVA_CONF_DIR/rootwrap.d
1247+
sudo cp $NOVA_DIR/etc/nova/rootwrap.d/*.filters $NOVA_CONF_DIR/rootwrap.d
12481248
sudo chown -R root:root $NOVA_CONF_DIR/rootwrap.d
12491249
sudo chmod 644 $NOVA_CONF_DIR/rootwrap.d/*
12501250
# Set up rootwrap.conf, pointing to /etc/nova/rootwrap.d
12511251
sudo cp $NOVA_DIR/etc/nova/rootwrap.conf $NOVA_CONF_DIR/
1252-
sudo sed -e "s:^path=.*$:path=$NOVA_CONF_DIR/rootwrap.d:" -i $NOVA_CONF_DIR/rootwrap.conf
1252+
sudo sed -e "s:^filters_path=.*$:filters_path=$NOVA_CONF_DIR/rootwrap.d:" -i $NOVA_CONF_DIR/rootwrap.conf
12531253
sudo chown root:root $NOVA_CONF_DIR/rootwrap.conf
12541254
sudo chmod 0644 $NOVA_CONF_DIR/rootwrap.conf
12551255
# Specify rootwrap.conf as first parameter to nova-rootwrap

0 commit comments

Comments
 (0)