Ensure package installation is non-interactive

Bug #1002285 reported by Alexandros Frantzis
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Obsolete LAVA Test
Fix Released
Michael Hudson-Doyle

Bug Description

Installation of package dependencies is currenty performed using "sudo apt-get install -y --force-yes". However, this is not enough to ensure unattended package installation, as some packages contain custom debconf configuration which blocks the process (e.g. gdm). We need to define the env. variable "DEBIAN_FRONTEND=noninteractive" to make the installation really non-interactive.

Here is a patch for this:

=== modified file 'lava_test/core/installers.py'
--- lava_test/core/installers.py 2012-03-08 18:05:05 +0000
+++ lava_test/core/installers.py 2012-05-21 12:58:26 +0000
@@ -65,7 +65,7 @@
             if observer:
             # XXX: Possible point of target-specific package installation
- cmd = "sudo apt-get install -y --force-yes " + " ".join(self.deps)
+ cmd = "sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes " + " ".join(self.deps)
             self._run_shell_cmd(cmd, observer)
             if observer:

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I love debconf!

I've applied your patch, thanks.

Changed in lava-test:
milestone: none → 2012.05
assignee: nobody → Michael Hudson-Doyle (mwhudson)
status: New → Fix Committed
Fathi Boudra (fboudra)
Changed in lava-test:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers