Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-04-11 23:16:57 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 23:16:57 +0200
commitf76f692483e235397cc3987ef3636d0fc96ba050 (patch)
tree298a268a05b6f6cba7defbd5991ea11483c8cc27 /archinstall.py
parent5f51f1afadd142385ceaf2d4ba330dd397c521e3 (diff)
Forgot formatting on hostname
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index 2fdd7292..94d68edb 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -179,7 +179,7 @@ class sys_command():
if len(self.opts['triggers']) == 0:
if 'debug' in self.opts and self.opts['debug']:
print('[N] Waiting for last command to finish...')
- if bytes(f'[root@args["hostname"] ~]#'.lower(), 'UTF-8') in output.lower():
+ if bytes(f'[root@{args["hostname"]} ~]#'.lower(), 'UTF-8') in output.lower():
if 'debug' in self.opts and self.opts['debug']:
print('[N] Last command finished, exiting subsystem.')
alive = False
@@ -660,7 +660,7 @@ if __name__ == '__main__':
o = b''.join(sys_command('/usr/bin/systemd-nspawn -D /mnt -b --machine temporary', opts={'triggers' : {
bytes(f'{args["hostname"]} login', 'UTF-8') : b'root\n',
b'Password' : bytes(args['password']+'\n', 'UTF-8'),
- bytes(f'[root@args["hostname"] ~]#', 'UTF-8') : bytes(command+'\n', 'UTF-8'),
+ bytes(f'[root@{args["hostname"]} ~]#', 'UTF-8') : bytes(command+'\n', 'UTF-8'),
}, **opts}).exec())
## And cleanup after out selves.. Don't want to leave any residue..