[Simple-cdd-devel] preseed parts not working
Javier Marcon
javiermarcon at gmail.com
Thu Jul 21 17:39:39 UTC 2016
Thanks,
El 21/07/16 a las 14:15, Vagrant Cascadian escribió:
> On 2016-07-19, Javier Marcon wrote:
>> Hello, in profiles folder I have a preseed file that notifies the cd
>> installer to use some options, but some lines of the preseed fifle are
>> ignored. I noticed these lines are ignored:
>>
>> d-i debian-installer/language string es
>> d-i debian-installer/country string AR
>> d-i debian-installer/locale string es_AR.UTF-8
>> d-i localechooser/supported-locales multiselect en_US.UTF-8, es_AR
> From the simple-cdd README:
>
> Language and Country Selection
>
> to pre-select the language and country, it is recommended to use the
> --locale commandline option:
>
> build-simple-cdd --locale en_US
>
> You could also specify it in a profile, e.g. profiles/miconfig.conf:
>
> locale=es_AR
>
> This is because preseeding isn't read until after the questions for
> locale are asked. You may be able to set the auto-install/enable=true
> option, as described here:
>
> https://d-i.debian.org/manual/en.amd64/apbs04.html#preseed-l10n
>
It worked perfectly with that setting.
>> d-i preseed/late_command string /bin/sh /cdrom/preseed/copiar.sh ; \
>> in-target /bin/sh /root/inst/cambiaperm.sh
> Not sure here.
>
> Does the file /cdrom/preseed/copiar.sh exist at the time that command is
> being run? Is the CD or USB .iso mounted at an alternate location?
>
In the root of the created cd was the folder that had the copiar.sh
file, and when the installer was running, the file was mounted in
/cdrom/preseed folder, but don't worry, I solved it putting the contents
of copiar.sh in the .postinstall file.
>> If I make the script profiles/miconfig.postinst , how can I run commands
>> chrooted to the installation disk (like in-target option does)?
> The .postinst would have to copy a file into the chroot and then run it.
>
>
> live well,
> vagrant
Regards,
Javier.
More information about the Simple-cdd-devel
mailing list