livedvd-root: configure supported languages in /etc/rpm/macros.lang before installing packages (added pre-packages.inc.sh hook)
This commit is contained in:
parent
902b88be96
commit
8790375d17
@ -18,6 +18,8 @@ libcap libaudit libselinux libsepol libpcre libcap-ng libattr libstdc++6 libpam"
|
|||||||
# pam initscripts
|
# pam initscripts
|
||||||
chroot $MOUNTDIR /usr/sbin/update-alternatives --install /bin/sh sh /bin/bash 20
|
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" ] && {
|
||||||
|
|
||||||
[ "$LANGUAGE" = "en" ] && KEYMAP=us || KEYMAP="$LANGUAGE"
|
[ "$LANGUAGE" = "en" ] && KEYMAP=us || KEYMAP="$LANGUAGE"
|
||||||
|
3
platforms/livedvd-root/pre-packages.inc.sh
Normal file
3
platforms/livedvd-root/pre-packages.inc.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user