diff --git a/usr/bin/archboot-detect-vconsole.sh b/usr/bin/archboot-detect-vconsole.sh index 7c0fa005e..272c67ad4 100755 --- a/usr/bin/archboot-detect-vconsole.sh +++ b/usr/bin/archboot-detect-vconsole.sh @@ -7,13 +7,13 @@ # wait for modules to initialize cmompletely udevadm settle # get screen setting mode from /sys -FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)" -if [[ "${FB_SIZE}" -gt '1900' ]]; then - SIZE="32" +_FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)" +if [[ "${_FB_SIZE}" -gt '1900' ]]; then + _SIZE="32" else - SIZE="16" + _SIZE="16" fi # update vconsole.conf accordingly echo KEYMAP=us >/etc/vconsole.conf -echo FONT=ter-v${SIZE}n >>/etc/vconsole.conf +echo FONT=ter-v${_SIZE}n >>/etc/vconsole.conf /lib/systemd/systemd-vconsole-setup diff --git a/usr/lib/archboot/cpio/init.sh b/usr/lib/archboot/cpio/init.sh index 1d1b3b2e9..5feeea75e 100755 --- a/usr/lib/archboot/cpio/init.sh +++ b/usr/lib/archboot/cpio/init.sh @@ -128,11 +128,11 @@ done # fix parallels screen [[ "${_ARCH}" == "aarch64" ]] && sleep 1 # get screen setting mode from /sys -FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)" -if [[ "${FB_SIZE}" -gt '1900' ]]; then - SIZE="32" +_FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)" +if [[ "${_FB_SIZE}" -gt '1900' ]]; then + _SIZE="32" else - SIZE="16" + _SIZE="16" fi # it needs one echo before, in order to reset the consolefont! _msg "Initializing Console..."