From 4b022823096b17f16935882cb6bef02f5c71a658 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 29 May 2021 21:58:43 +0200 Subject: [PATCH] Fixed not detecting top-level timezones like UTC; Fixed initramfs keymap not updated automatically when linked to normal keymap --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0184ec0..de6224b 100755 --- a/configure +++ b/configure @@ -61,11 +61,12 @@ function get_timezone() { # /etc/localtime is a symlink as expected local timezone timezone=${file#*zoneinfo/} - if [[ $timezone = "$file" || ! $timezone =~ ^[^/]+/[^/]+$ ]]; then + if [[ $timezone == "$file" ]]; then # not pointing to expected location or not Region/City echo "Europe/London" + else + echo "$timezone" fi - echo "$timezone" else # compare files by contents find /usr/share/zoneinfo -type f -exec cmp -s {} /etc/localtime \; -print \ @@ -1173,6 +1174,10 @@ function ADDITIONAL_PACKAGES_menu() { # $1: filename function save() { + if [[ "$KEYMAP_INITRAMFS_OTHER" == "false" ]]; then + KEYMAP_INITRAMFS="$KEYMAP" + fi + cat > "$1" <