summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-03-06 14:21:50 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-03-06 14:21:50 (EST)
commit3898ba34510fcd8b90a8387556cc893e69c05983 (patch)
treead56588747162ed6175ff4ddbc16614a9e363ac9 /inst
parent6d6acb974269e0e56ca9998c8368a21a8a65bca6 (diff)
downloadpc-inst-3898ba34510fcd8b90a8387556cc893e69c05983.zip
pc-inst-3898ba34510fcd8b90a8387556cc893e69c05983.tar.gz
pc-inst-3898ba34510fcd8b90a8387556cc893e69c05983.tar.bz2
Preseed debconf selections
Diffstat (limited to 'inst')
-rwxr-xr-xinst16
1 files changed, 16 insertions, 0 deletions
diff --git a/inst b/inst
index a3f01e0..36dde95 100755
--- a/inst
+++ b/inst
@@ -339,6 +339,21 @@ do_user_setup()
fi
}
+do_debconf_setup()
+{
+ local owner=
+ local name=
+ local type=
+ local value=
+
+ info 'Preseeding debconf database'
+
+ printf '%s' "${debconf_selections}" | while read owner name type value
+ do
+ printf '%s %s %s %s\n' "${owner}" "${name}" "${type}" "${value}"
+ done | in_target debconf-set-selections
+}
+
do_install_extra()
{
info 'Installing extra packages'
@@ -449,6 +464,7 @@ main()
do_ locale_setup || { do_ chroot_cleanup; do_ umount; return 1; }
do_ tz_setup || { do_ chroot_cleanup; do_ umount; return 1; }
do_ user_setup || { do_ chroot_cleanup; do_ umount; return 1; }
+ do_ debconf_setup || { do_ chroot_cleanup; do_ umount; return 1; }
do_ install_extra || { do_ chroot_cleanup; do_ umount; return 1; }
do_ postinst || { do_ chroot_cleanup; do_ umount; return 1; }
do_ chroot_cleanup || { do_ umount; return 1; }