livedvd-root: configure supported languages in /etc/rpm/macros.lang before installing packages (added pre-packages.inc.sh hook)

This commit is contained in:
Silvan Calarco 2018-09-11 09:42:18 +02:00
parent 902b88be96
commit 8790375d17
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,8 @@ libcap libaudit libselinux libsepol libpcre libcap-ng libattr libstdc++6 libpam"
# pam initscripts
chroot $MOUNTDIR /usr/sbin/update-alternatives --install /bin/sh sh /bin/bash 20
[ -e $TARGETDIR/platforms/$PLATFORM/pre.inc.sh ] && . $TARGETDIR/platforms/$PLATFORM/pre-packages.inc.sh
[ "$LANGUAGE" ] && {
[ "$LANGUAGE" = "en" ] && KEYMAP=us || KEYMAP="$LANGUAGE"

View File

@ -0,0 +1,3 @@
# Configure rpm for livedvd supported languages
mkdir -p ${MOUNTDIR}/etc/rpm
echo "%install_langs en:it:fr:es:de" > ${MOUNTDIR}/etc/rpm/macros.lang