From 8790375d177ea8ffe6ce6103dc6052f3b4c2189c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 11 Sep 2018 09:42:18 +0200 Subject: [PATCH] livedvd-root: configure supported languages in /etc/rpm/macros.lang before installing packages (added pre-packages.inc.sh hook) --- makedist.inc.sh | 2 ++ platforms/livedvd-root/pre-packages.inc.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 platforms/livedvd-root/pre-packages.inc.sh diff --git a/makedist.inc.sh b/makedist.inc.sh index 757d7e3..c7a2147 100644 --- a/makedist.inc.sh +++ b/makedist.inc.sh @@ -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" diff --git a/platforms/livedvd-root/pre-packages.inc.sh b/platforms/livedvd-root/pre-packages.inc.sh new file mode 100644 index 0000000..d792996 --- /dev/null +++ b/platforms/livedvd-root/pre-packages.inc.sh @@ -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