Skip to content

Commit

Permalink
base: remove lang.sh
Browse files Browse the repository at this point in the history
When entering the container we always get this annoying warning:

bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory

Because the locale is not available, to fix this issue let's remove the
lang file which contains the local to set.

Signed-off-by: Sébastien Han <[email protected]>
  • Loading branch information
leseb committed Mar 27, 2019
1 parent a92cd66 commit 15d8573
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo 'Postinstall cleanup' && \
( rm -rf "/usr/bin/hyperkube /usr/bin/etcd /usr/bin/systemd-analyze /usr/share/hwdata/{iab.txt,oui.txt}" && \
(rm -rf "/usr/bin/hyperkube /usr/bin/etcd /usr/bin/systemd-analyze /usr/share/hwdata/{iab.txt,oui.txt} /etc/profile.d/lang.sh" && \
yum clean all && \
rpmdb --rebuilddb && \
rpm -q __CEPH_BASE_PACKAGES__)
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ echo 'Postinstall cleanup' && \
( yum clean all && \
rpmdb --rebuilddb && \
rpm -q __CEPH_BASE_PACKAGES__ && \
sed -i 's/enabled=.*/enabled=1/g' /etc/yum/pluginconf.d/subscription-manager.conf )
sed -i 's/enabled=.*/enabled=1/g' /etc/yum/pluginconf.d/subscription-manager.conf \
rm -f /etc/profile.d/lang.sh )
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
echo 'Postinstall cleanup' && \
( yum clean all && \
rpm -q __CEPH_BASE_PACKAGES__ && \
sed -i 's/enabled=.*/enabled=1/g' /etc/yum/pluginconf.d/subscription-manager.conf )
sed -i 's/enabled=.*/enabled=1/g' /etc/yum/pluginconf.d/subscription-manager.conf \
rm -f /etc/profile.d/lang.sh )

0 comments on commit 15d8573

Please sign in to comment.