From 8e22ac18d66b0ec06b8e7923c01876a9a5c95b7f Mon Sep 17 00:00:00 2001 From: Lord Anton Hvornum Date: Sat, 7 Apr 2018 16:28:11 +0200 Subject: more debing --- archinstall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall.py b/archinstall.py index 57db7958..204a5f54 100644 --- a/archinstall.py +++ b/archinstall.py @@ -53,7 +53,7 @@ def run(cmd, echo=False): # print(data.decode('UTF-8'), end='') output += data output += handle.stdout.read() - print('Command done:', output) + print('Command done:', output, handle.poll()) handle.stdout.close() return output @@ -210,7 +210,7 @@ if __name__ == '__main__': o = run('arch-chroot /mnt rm /etc/localtime') o = run('arch-chroot /mnt ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime') o = run('arch-chroot /mnt hwclock --hctosys --localtime') - o = run('arch-chroot /mnt {hostname}'.format(**args)) + 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 locale-gen') o = run('arch-chroot /mnt chmod 700 /root') -- cgit v1.2.3-70-g09d2