From f7a726ff69160a7df046201b15842cfe2002bd61 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 29 Aug 2007 14:20:06 +0000 Subject: * added support to apt backend for integrating a special slx debconf database (a textfile) that can be used to provide default values for some packages that otherwise ask the user during instllation. * added a debconf defaults database for debian-3.1 which shuts up the installation process for that distro by providing default settings for the 'locales' package. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1329 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSSetup/MetaPackager/apt.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'installer') diff --git a/installer/OpenSLX/OSSetup/MetaPackager/apt.pm b/installer/OpenSLX/OSSetup/MetaPackager/apt.pm index ba9c6722..5cfd2655 100644 --- a/installer/OpenSLX/OSSetup/MetaPackager/apt.pm +++ b/installer/OpenSLX/OSSetup/MetaPackager/apt.pm @@ -95,9 +95,16 @@ sub installSelection if (slxsystem("apt-get -y update")) { die _tr("unable to update repository info (%s)\n", $!); } + if ('/var/cache/debconf/slx-defaults.dat') { + $ENV{DEBCONF_DB_FALLBACK} + = "'File{/var/cache/debconf/slx-defaults.dat}'"; + } + $ENV{DEBIAN_FRONTEND} = 'noninteractive'; if (slxsystem("apt-get -y install $pkgSelection")) { die _tr("unable to install selection (%s)\n", $!); } + delete $ENV{DEBCONF_DB_FALLBACK}; + delete $ENV{DEBIAN_FRONTEND}; return; } -- cgit v1.2.3-55-g7522