diff --git a/plugins/os/openbsd/tasks/50-root-pw.sh b/plugins/os/openbsd/tasks/50-root-pw.sh index 3215a44..e0f5f92 100644 --- a/plugins/os/openbsd/tasks/50-root-pw.sh +++ b/plugins/os/openbsd/tasks/50-root-pw.sh @@ -1,2 +1,2 @@ #usermod -p $(echo "root" | encrypt -b 6) root -usermod -p - root +run_in_target usermod -p - root diff --git a/plugins/os/openbsd/tasks/50-serial-console.sh b/plugins/os/openbsd/tasks/50-serial-console.sh index 33f89b7..7003d54 100644 --- a/plugins/os/openbsd/tasks/50-serial-console.sh +++ b/plugins/os/openbsd/tasks/50-serial-console.sh @@ -1,2 +1,2 @@ -echo stty com0 115200 >> /etc/boot.conf -sed -i 's,^\(tty00.*\)"/usr.*,\1"/usr/libexec/getty std.115200" xterm on secure,' /etc/ttys +echo stty com0 >> $TARGET/etc/boot.conf +sed -i 's,^\(tty00.*\)"/usr.*,\1"/usr/libexec/getty std.9600" xterm on secure,' $TARGET/etc/ttys