All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 4ace7c90 authored by David Johnson's avatar David Johnson

Use a different mechanism to tell dpkg automatic conffile settings.

Now I see why I hadn't enabled the

  -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"

directly on the apt-get command lines.  apt-get must have a bug, because
when you specify this option in noninteractive (and non-pty, I assume,
because this is via startup command-then-ssh), at least one of the dpkg
commands invoked by apt-get has no dpkg action.

So, put these two options into /etc/dpkg/dpkg.cfg/cloudlab, and then
there are no problems.

Of course, this means this same behavior will happen to the users if
they try apt-get or dpkg later on.  This is on the one hand, preferable,
because then they can't possibly screw up openstack config files through
package upgrades.  On the other hand, they might get fooled they're
upgrading some other package.

Probably will just document this and call it good :).
parent 9887028e
...@@ -479,8 +479,11 @@ unified() { ...@@ -479,8 +479,11 @@ unified() {
} }
# Setup apt-get to not prompt us # Setup apt-get to not prompt us
echo "force-confdef" > /etc/dpkg/dpkg.cfg.d/cloudlab
echo "force-confold" >> /etc/dpkg/dpkg.cfg.d/cloudlab
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
DPKGOPTS='-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"' # -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confdef"
# Don't install/upgrade packages if this is not set # Don't install/upgrade packages if this is not set
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment