summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorOliver Tappe2007-08-29 16:20:06 +0200
committerOliver Tappe2007-08-29 16:20:06 +0200
commitf7a726ff69160a7df046201b15842cfe2002bd61 (patch)
tree57e5da069b4f9a2dff1911f5cbf578eef7596af5 /installer
parentadded 2 snapshots, so you can see the theme /wo installing ;) (diff)
downloadcore-f7a726ff69160a7df046201b15842cfe2002bd61.tar.gz
core-f7a726ff69160a7df046201b15842cfe2002bd61.tar.xz
core-f7a726ff69160a7df046201b15842cfe2002bd61.zip
* 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
Diffstat (limited to 'installer')
-rw-r--r--installer/OpenSLX/OSSetup/MetaPackager/apt.pm7
1 files changed, 7 insertions, 0 deletions
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;
}