summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-11-11 18:06:19 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-11-11 18:06:19 (GMT)
commitcd2b0085e3f816acf9dda037bb0f6ddb54852c8e (patch)
tree4964f1f4a0d70bf637846e09efdb12b824cf4de4
parentf07f6943fafc707bdf7559e18a93700db98d0548 (diff)
downloadgi-psl-cd2b0085e3f816acf9dda037bb0f6ddb54852c8e.zip
gi-psl-cd2b0085e3f816acf9dda037bb0f6ddb54852c8e.tar.gz
gi-psl-cd2b0085e3f816acf9dda037bb0f6ddb54852c8e.tar.bz2
iso: le initrd gere les keymap/language fourni au boot
Je désactive l'automatisation "trop forte" en cas de preseed, pour permettre la configuration de la langue et du clavier selon les paramètres keymap, language, country et locale fournis lors du boot. Sinon tout le début de l'install est en anglais clavier qwerty, ce qui est pénible quand la configuration réseau plante ou quand il faut donner le nom de la machine.
-rwxr-xr-xiso/initrd-override-amd64/lib/debian-installer-startup.d/S60auto-install17
1 files changed, 17 insertions, 0 deletions
diff --git a/iso/initrd-override-amd64/lib/debian-installer-startup.d/S60auto-install b/iso/initrd-override-amd64/lib/debian-installer-startup.d/S60auto-install
new file mode 100755
index 0000000..b9701c0
--- /dev/null
+++ b/iso/initrd-override-amd64/lib/debian-installer-startup.d/S60auto-install
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+. /usr/share/debconf/confmodule
+
+if db_get auto-install/enable && [ "$RET" = true ]; then
+ # find at least one preseed
+ if [ -e /preseed.cfg ] ||
+ { db_get preseed/url && [ "$RET" ]; } ||
+ { db_get preseed/file && [ "$RET" ]; }; then
+ # disable locale & kbd selection
+ # commented by entr'ouvert # echo 1 >/var/run/auto-install.active
+ :
+ else
+ # register that no preseed was specified
+ touch /var/run/preseed_unspecified_at_boot
+ fi
+fi