FAI debconf setting for portmap loopback interface binding doesn't work

Jens Abromeit jens at abromeit.info
Mon May 24 23:10:36 CEST 2010


Hello to all!

My Aim:

The installed Lenny Client should run the portmapper only bound on the
localhost interface, resulting in a /etc/default/portmap with this uncommented line:
OPTIONS="-i 127.0.0.1"

I added to the /srv/fai/config/debconf/FAIBASE
# portmap bound to 127.0.0.1
portmap portmap/loopback boolean true

During the installation I opened a second terminal on the client
and checked the /target/var/cache/debconf/config.dat:
---------------------------------
Name: portmap/loopback
Template: portmap/loopback
Value: true
Owners: portmap
Flags: seen
---------------------------------

When I see "Setting up portmap" in the first terminal the value switches:
---------------------------------
Value: false
---------------------------------

So after the client reboot the options in /etc/default/portmap are disabled:
#OPTIONS="-i 127.0.0.1"

Checking the FAI logs, the FAI settings seems to be correct:
--------------------------------------------------------------------------
/var/log/fai/demohost/last/debconf.data seems to be ok:
# portmap auf 127.0.0.1
portmap portmap/loopback boolean true

/var/log/fai/demohost/last/debconf.log seems to be ok:
info: Trying to set 'portmap/loopback' [boolean] to 'true'
info: Loading answer for 'portmap/loopback'
--------------------------------------------------------------------------

Changing the /srv/fai/config/debconf/FAIBASE to:
portmap portmap/loopback boolean false 

doesn't have a reversed result. The setting stays at "false"

As far as I can see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=317358
describes this behaviour. But I didn't see at the moment, where the debconf setting is
returnd to "false" (see /var/lib/dpkg/info/portmap.postinst).

Or is this a result of the following task install_packages statement?:
"executing chroot /target aptitude -R -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold""

Best Regards

Jens




More information about the linux-fai mailing list