~elementary-os/ubuntu-package-imports/ubiquity-bionic

« back to all changes in this revision

Viewing changes to finish-install.d/01oem-config-udeb

  • Committer: RabbitBot
  • Date: 2018-02-05 14:44:42 UTC
  • Revision ID: rabbitbot@elementary.io-20180205144442-vt0fvth7zus90wjh
Initial import, version 17.10.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
set -e
 
3
 
 
4
. /usr/share/debconf/confmodule
 
5
 
 
6
db_get oem-config-udeb/frontend
 
7
apt-install "oem-config${RET:+-$RET ubiquity-frontend-$RET}"
 
8
if [ "$RET" = gtk ]; then
 
9
        apt-install "oem-config-slideshow-ubuntu" || true
 
10
fi
 
11
if [ "$RET" = kde ]; then
 
12
        apt-install "ubiquity-slideshow-kubuntu" || true
 
13
fi
 
14
# Restore title, since packages with debconf templates may have changed it.
 
15
db_settitle debian-installer/finish-install/title
 
16
 
 
17
db_input high oem-config-udeb/instructions || true
 
18
db_go || true
 
19
 
 
20
# Copy the value of debian-installer/locale over to the target system so that
 
21
# it gets used by oem-config as the default language selection.
 
22
# debian-installer/framebuffer is needed for oem-config-debconf.
 
23
db_get debian-installer/locale
 
24
LOCALE="$RET"
 
25
db_get debian-installer/framebuffer
 
26
FRAMEBUFFER="$RET"
 
27
chroot /target debconf-set-selections <<EOF || true
 
28
oem-config debian-installer/locale select $LOCALE
 
29
oem-config debian-installer/framebuffer boolean $FRAMEBUFFER
 
30
EOF