index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Lord Anton Hvornum <anton.feeds@gmail.com> | 2018-04-07 16:28:11 +0200 |
---|---|---|
committer | Lord Anton Hvornum <anton.feeds@gmail.com> | 2018-04-07 16:28:11 +0200 |
commit | 8e22ac18d66b0ec06b8e7923c01876a9a5c95b7f (patch) | |
tree | 1363db478b48551a573d22c3f07ab9754f83f1b0 | |
parent | 88dfcad86c314fc5aa90a508f4e76d666f69099f (diff) |
-rw-r--r-- | archinstall.py | 4 |
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') |