r-darwish / alma

Create Arch Linux based bootable USB drives
GNU General Public License v3.0
389 stars 31 forks source link

setting Locale #60

Closed bknow1452 closed 3 years ago

bknow1452 commented 3 years ago

Hy there,

created an preset to adjust the locale-setting:

script = """ set -eux sed -i 's/#de_DE/de_DE/' /etc/locale.gen sed -i 's/en_US/#en_US/' /etc/locale.gen locale-gen echo KEYMAP=de-latin1 > /etc/vconsole.conf echo FONT=lat9w-16 >> /etc/vconsole.conf echo LANG=de_DE.UTF-8 > /etc/locale.conf ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime localectl set-locale LANG=de_DE.UTF-8 localectl --no-convert set-keymap de-latin1-nodeadkeys """

its getting executed but afterwards i get this during the creation: 2020-09-11 10:18:26 INFO alma > Setting locale Generating locales... de_DE.UTF-8... done de_DE.ISO-8859-1... done de_DE.ISO-8859-15@euro... done en_US.UTF-8... done

and at the end, its all English again. Is there any config parameter im missing to pass to alma?

bknow1452 commented 3 years ago

corrected the Preset to:

script = """ set -eux sed -i 's/#de_DE/de_DE/' /etc/locale.gen sed -i 's/en_US/#en_US/' /etc/locale.gen locale-gen echo KEYMAP=de-latin1 > /etc/vconsole.conf echo FONT=lat9w-16 >> /etc/vconsole.conf ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime localectl set-locale de_DE.UTF-8 localectl --no-convert set-keymap de-latin1-nodeadkeys """

Buts also not working...

bknow1452 commented 3 years ago

Hello there,

found the issue:

  1. use the current version of alma (from AUR: alma-git, not the one pacman is providing)
  2. this preset is working: script = """ sed -i 's/#de_DE/de_DE/' /etc/locale.gen sed -i 's/en_US/#en_US/' /etc/locale.gen locale-gen echo KEYMAP=de-latin1 > /etc/vconsole.conf echo FONT=lat9w-16 >> /etc/vconsole.conf ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime localectl set-locale de_DE.UTF-8 localectl --no-convert set-keymap de-latin1-nodeadkeys echo "LANG=de_DE.UTF-8" > /etc/locale.conf """

closing the issue