I'm trying to remaster Debian to create a Debian-based distro (Swift Linux).  
Thus, I'm using the debootstrap command in my script to create a a minimal 
Debian installation and then using chroot to update apt-get and install 
packages.

For some reason, I'm getting locale errors, and the solutions I've searched for 
on the web haven't been working so far.  The errors are "locale: Cannot set X 
to default locale.  No such file or directory."  (X=LC_CTYPE, LC_MESSAGES, and 
LC_COLLATE)  Then the process of installing the console-tools package in chroot 
brings up a dialog box asking me to confirm the language and keyboard (US 
English).  Given that this script needs to RUN UNATTENDED, this is unacceptable.

I have run the Live Build script that puts together Wheezy (one of the examples 
in the GitWeb Live Image repository), and it somehow addresses the locale 
issue.  I've looked at the Live Build source code, but I haven't figured out 
how it does this.  I read that preseeding can automatically select and enter 
choices in dialog boxes, but I haven't been able to find the preseed 
configuration files in the GitWeb Live Image repository.

My questions:
1.  How do I provide the provide the proper locale settings in the chroot 
environment so that they get recognized?
2.  How does the Live Build script provide the proper locale settings?  What 
parts of the source code address this?
3.  If preseeding is the way to go, how exactly do I implement this?  There's a 
"d-i" command, and there is a preseed configuration file.  However, I can't 
figure out how to enable "d-i" or where to put the preseed configuration file.

-- 
Jason Hsu <[email protected]>


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/[email protected]

Reply via email to