6
if [ "$1" = '--debug' ]; then
10
18
# KDM stores the default user here, and apparently gets upset that we've
11
19
# just removed its previous default user.
12
20
rm -f /var/lib/kdm/kdmsts
13
21
# Revert to creating a user at uid 1000.
14
22
echo RESET passwd/user-uid | debconf-communicate >/dev/null
15
# These two templates have been preseeded, which does nasty things to their
16
# templates. It's probably a bug in cdebconf's debconf-copydb that they end
17
# up still registered to debian-installer/dummy at this point, but let's
18
# just work around it for now so that we get sensible translated
20
for q in passwd/user-fullname passwd/username; do
21
echo REGISTER "$q" "$q"
23
done | debconf-communicate oem-config >/dev/null
23
if [ -z "$AUTOMATIC" ]; then
24
# These two templates have been preseeded, which does nasty things
25
# to their templates. It's probably a bug in cdebconf's
26
# debconf-copydb that they end up still registered to
27
# debian-installer/dummy at this point, but let's just work around
28
# it for now so that we get sensible translated descriptions.
29
for q in passwd/user-fullname passwd/username; do
30
echo REGISTER "$q" "$q"
32
done | debconf-communicate oem-config >/dev/null
24
35
# Remove the oem-config-prepare menu item.
25
36
rm -f /usr/share/applications/oem-config-prepare-gtk.desktop \
26
37
/usr/share/applications/kde4/oem-config-prepare-kde.desktop
58
69
if [ "$FRONTEND" = debconf_ui ]; then
59
70
plymouth quit || true
60
71
LANG=en_US.UTF-8 FRONTEND="$FRONTEND" \
61
/usr/sbin/oem-config-wrapper $DEBUG --only \
72
/usr/sbin/oem-config-wrapper $DEBUG $AUTOMATIC --only \
62
73
2>>/var/log/oem-config.log \
65
76
FRONTEND="$FRONTEND" \
66
77
/usr/bin/ubiquity-dm vt7 :0 oem \
67
/usr/sbin/oem-config-wrapper $DEBUG --only || CODE=$?
78
/usr/sbin/oem-config-wrapper $DEBUG $AUTOMATIC --only || CODE=$?
69
80
if [ "$CODE" -eq 0 ]; then