build-setup: get fedora container working
Some new packages are required and the mechanism to set the locale has
changed.
Tested:
Verified can build openbmc image with distro=fedora set
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Iebf46adc9c2bd0fe5ed585114166462ff2267ea2
diff --git a/build-setup.sh b/build-setup.sh
index 1a8c1f9..932f232 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -227,12 +227,6 @@
${PROXY}
- # Set the locale
- RUN locale-gen en_US.UTF-8
- ENV LANG en_US.UTF-8
- ENV LANGUAGE en_US:en
- ENV LC_ALL en_US.UTF-8
-
RUN dnf --refresh install -y \
bzip2 \
chrpath \
@@ -256,7 +250,15 @@
texinfo \
wget \
which \
- iputils-ping
+ file \
+ hostname \
+ rpcgen \
+ glibc-langpack-en \
+ glibc-locale-source
+
+ # Set the locale
+ ENV LANG=en_US.utf8
+ RUN localedef -f UTF-8 -i en_US en_US.UTF-8
RUN grep -q ${GROUPS} /etc/group || groupadd -g ${GROUPS} ${USER}
RUN grep -q ${UID} /etc/passwd || useradd -d ${HOME} -m -u ${UID} -g ${GROUPS} ${USER}