Need new-line for locale-gen to read the file

This commit is contained in:
Lord Anton Hvornum 2018-04-12 22:18:16 +02:00
parent 1c1a3490dd
commit 722dd9643c
1 changed files with 2 additions and 2 deletions

View File

@ -274,8 +274,8 @@ if __name__ == '__main__':
#o = run('arch-chroot /mnt echo "{hostname}" > /etc/hostname'.format(**args))
#o = run("arch-chroot /mnt sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen")
o = run("arch-chroot /mnt sh -c \"echo '{hostname}' > /etc/hostname\"".format(**args))
o = run("arch-chroot /mnt sh -c \"echo -n 'en_US.UTF-8 UTF-8' > /etc/locale.gen\"")
o = run("arch-chroot /mnt sh -c \"echo -n 'LANG=en_US.UTF-8' > /etc/locale.conf\"")
o = run("arch-chroot /mnt sh -c \"echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen\"")
o = run("arch-chroot /mnt sh -c \"echo 'LANG=en_US.UTF-8' > /etc/locale.conf\"")
o = run('arch-chroot /mnt locale-gen')
o = run('arch-chroot /mnt chmod 700 /root')