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" <