[Lunar-commits] <lunar-iso> lunar-install: localectl doesn't work from within the installer

Stefan Wold ratler at lunar-linux.org
Sat Sep 13 12:57:40 CEST 2014


commit c919665624752df60804520e47719808afa4cd7f
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 13 Sep 2014 12:55:55 +0200
URL: https://github.com/lunar-linux/lunar-iso/commit/c919665624752df60804520e47719808afa4cd7f

lunar-install: localectl doesn't work from within the installer
---
  lunar-install/sbin/lunar-install | +1/-3     
  1 file changed, 1 insertion(+), 3 deletions(-)

--- a/lunar-install/sbin/lunar-install
+++ b/lunar-install/sbin/lunar-install
@@ -1165,12 +1165,10 @@ transfer()
       percent_msg "Finishing up installation"
       chroot_run systemd-machine-id-setup 2> /dev/null
       echo -e "KEYMAP=$KEYMAP\nFONT=$CONSOLEFONT" > $TARGET/etc/vconsole.conf
-      [ -z "$LANG" ] || chroot_run localectl --no-ask-password set-locale "LANG=$LANG"
+      echo -e "LANG=${LANG:-en_US.utf8}\nLC_ALL=${LANG:-en_US.utf8}" > $TARGET/etc/locale.conf
       [ -z "$EDITOR" ] || echo "export EDITOR=\"$EDITOR\"" > $TARGET/etc/profile.d/editor.rc
 
       # post-first-boot message:
-      #cp /etc/init.d/lunar-install $TARGET/etc/init.d/
-      #ln -sf /etc/init.d/lunar-install $TARGET/etc/rc3.d/S99lunar-install
       cp /README $TARGET/root/README
       cp $MOTD_FILE $TARGET/etc/motd
 




More information about the Lunar-commits mailing list