distro-builder that also generates proper locales

This commit is contained in:
Mike Staszel 2010-06-13 21:14:23 -07:00
parent 48e242449e
commit f3dd6be0d6

View file

@ -1,7 +1,7 @@
#!/bin/bash
#
# Plugbox Linux Distribution Image Builder
# Version 0.1.1
# Version 0.1.2
#
# Licensed under the GPLv2.
#
@ -25,6 +25,9 @@ rm $1/dev/{console,null,zero}
chroot $1/ mknod -m 600 /dev/console c 5 1
chroot $1/ mknod -m 666 /dev/null c 1 3
chroot $1/ mknod -m 666 /dev/zero c 1 5
rm $1/etc/locale.gen
echo "en_US.UTF-8 UTF-8" >> $1/etc/locale.gen
echo "en_US ISO-8859-1" >> $1/etc/locale.gen
chroot $1/ /usr/sbin/locale-gen
chroot $1/ /usr/bin/pacman -Scc