Don't install FONT if it's the same as DEFAULT_FONT.
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>master
parent
fc9bc6f8db
commit
e5c9bc1198
|
@ -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}.*
|
||||
|
|
Loading…
Reference in New Issue