]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Don't install FONT if it's the same as DEFAULT_FONT.
authorCanek Peláez Valdés <caneko@gmail.com>
Mon, 15 Oct 2012 00:51:54 +0000 (19:51 -0500)
committerHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 07:38:17 +0000 (09:38 +0200)
If the user defines FONT in /etc/vconsole.conf as the same font
defined in DEFAULT_FONT, when creating her initd she will get a
message similar to this one:

gzip: /var/tmp/initramfs.wzl9Qt/usr/share/consolefonts/LatArCyrHeb-16.psfu
already exists; do you wish to overwrite (y or n)?

Signed-off-by: Canek Peláez <canek@ciencias.unam.mx>
modules.d/10i18n/module-setup.sh

index df6e5b193022c461cb414726c64972b706b27573..1ed1db68d0a691b704d39bb5e61f476957043964 100755 (executable)
@@ -173,7 +173,7 @@ install() {
 
         inst_opt_decompress ${kbddir}/consolefonts/${DEFAULT_FONT}.*
 
-        if [[ ${FONT} ]]
+        if [[ ${FONT} ]] && [[ ${FONT} != ${DEFAULT_FONT} ]]
         then
             FONT=${FONT%.psf*}
             inst_opt_decompress ${kbddir}/consolefonts/${FONT}.*