[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't find a way to preseed keyboard layout for all d-i questions



On 1/31/2020 9:38 PM, Yvan Masson wrote:
>
>
> Le 31/01/2020 à 20:54, john doe a écrit :
>> On 1/31/2020 8:37 PM, Yvan Masson wrote:
>>> Le 31/01/2020 à 16:50, john doe a écrit :
>>>> On 1/31/2020 10:36 AM, Yvan Masson wrote:
>>>>> Le 29/01/2020 à 18:16, MAS Jean-Louis a écrit :
>>>>>> Le 29/01/2020 à 14:50, Yvan Masson a écrit :
>>>>>>
>>>>>>> However, before loading preseed.cfg, installer asks for computer
>>>>>>> name: I
>>>>>>> would like this question to be asked in French and more
>>>>>>> importantly to
>>>>>>> have the keyboard layout configured in French.
>>>>>>>
>>>>>>> I have tried many boot parameters (layout=fr, layout=fr(latin9),
>>>>>>> language=fr, language=fr_FR.UTF-8…) but could not find anything
>>>>>>> working.
>>>>>>>
>>>>>>> After answering this question, preseed.cfg is loaded so language and
>>>>>>> keyboard layout are properly applied.
>>>>>>
>>>>>> It's a well known bug unfortunately
>>>>>>
>>>>>> I have asked the same question some time ago on the French
>>>>>> debian-user
>>>>>> list, and frederic boiteux gave me some interesting clues.
>>>>>>
>>>>>> You may search for this thread :
>>>>>>
>>>>>> "Configurer un clavier français via preseed"
>>>>>>
>>>>>> A similar bug was reported with an Hungarian keyboard, without any
>>>>>> fixes
>>>>>> so far.
>>>>>>
>>>>>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931368
>>>>>>
>>>>>> Regards
>>>>>
>>>>> Thanks for the information. However I just checked by doing a fresh
>>>>> installation with BIOS PXE boot, di-netboot-assistant and a preseed
>>>>> file
>>>>> served by TFTP: locale and keyboard layout are properly applied:
>>>>> - during install once preseed.cfg is loaded
>>>>> - after reboot
>>>>
>>>> Yes, because this is delayed after the preseed file is fetched! :)
>>>>
>>>> But if I'm not mistaking, you want to be able to specify the hostname
>>>> manually because you have no control over the dhcp server?
>>>>
>>> Exactly, so I want to preseed most of the question but:
>>> - hostname
>>> - user password
>>>
>>> As the hostname and domain are asked before preseed file is fetched, I
>>> tried to use boot options to set the domain (it works) and the locale
>>> (which does not work).
>>>
>>> Maybe preseeding has not been designed to use both file and command line
>>> options… I will submit a bug report, please tell me if you think I
>>> shouldn't.
>>>
>>
>> Note that the debian-boot mailing list is responsible for the Debian
>> installer, before filing a bugreport I would first seak advice there.
>
> Thanks, I will ask there.
>>
>> Maybe (1) could help you getting what you want.
>
> Thanks, but no, I really don't to modify the installer's initrd :-)
>>
>> Actually, what you want, as kernel boot parameter could be 'install
>> <URL>'.
> I am sorry but is it documented somewhere?
>>

From (1):

"The "auto" command launches the installation in the automated mode,
where the configuration of hostname, locale and keymap are postponed so
that they can be answered from the preseed file loaded from the network.
You could use "install url=..." but you'd have to answer these questions
manually, regardless of what you have in the preseed config. "

1)
https://wiki.debian.org/DebianInstaller/Preseed#Loading_the_preseeding_file_from_a_webserver

--
John Doe


Reply to: