void-mklive/dracut/locale.sh
Juan RP 783a25e632 Misc changes to reduce image size.
1- Stop generating locale via dracut; generate choosen locale at build time.
2- Stop generating a local repository (/packages) to the rootfs.
3- Drop support for -l option.
4- There's no need to copy kernel modules manually anymore.
5- Switch to base-system and some more additional packages to drop base-system-live
   requirement.

WIP! the installer must be updated to copy rootfs files to the targetdir.
2013-08-22 11:52:07 +02:00

18 lines
530 B
Bash

#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
LOCALE=$(getarg locale.LANG)
[ -z "$LOCALE" ] && LOCALE="en_US.UTF-8"
# also enable this locale in newroot.
echo "LANG=$LOCALE" > $NEWROOT/etc/locale.conf
echo "LC_COLLATE=C" >> $NEWROOT/etc/locale.conf
# set keymap too.
KEYMAP=$(getarg vconsole.keymap)
[ -z "$KEYMAP" ] && KEYMAP="us"
sed -e "s,^KEYMAP=.*,KEYMAP=$KEYMAP," -i $NEWROOT/etc/vconsole.conf