From: Alexander Smirnov <asmirnov@ilbers.de>
To: isar-users@googlegroups.com
Cc: Alexander Smirnov <asmirnov@ilbers.de>
Subject: [PATCH 2/2] isar-bootstrap: Generate en_US.UTF-8 locale
Date: Tue, 15 May 2018 18:30:52 +0300 [thread overview]
Message-ID: <20180515153052.4946-3-asmirnov@ilbers.de> (raw)
In-Reply-To: <20180515153052.4946-1-asmirnov@ilbers.de>
Generate this locale by default for all the root filesystems used in Isar.
Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
---
meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
index 28ad395..937ac9d 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb
@@ -197,6 +197,9 @@ addtask bootstrap before do_build after do_generate_keyring
do_set_locale() {
sudo install -v -m644 "${WORKDIR}/locale" "${ROOTFSDIR}/etc/locale"
sudo install -v -m644 "${WORKDIR}/locale.nopurge" "${ROOTFSDIR}/etc/locale.nopurge"
+
+ sudo sed -i '/en_US.UTF-8 UTF-8/s/^#//g' "${ROOTFSDIR}/etc/locale.gen"
+ sudo -E chroot "${ROOTFSDIR}" /usr/sbin/locale-gen
}
addtask set_locale after do_bootstrap
--
2.1.4
next prev parent reply other threads:[~2018-05-15 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 15:30 [PATCH 0/2] Last fixes for locales Alexander Smirnov
2018-05-15 15:30 ` [PATCH 1/2] isar-bootsrtap: Setup locale Alexander Smirnov
2018-05-22 8:04 ` Claudius Heine
2018-05-15 15:30 ` Alexander Smirnov [this message]
2018-05-23 13:18 ` [PATCH 0/2] Last fixes for locales Claudius Heine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180515153052.4946-3-asmirnov@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox