diff --git a/installimg/8.2.updates/etc/systemd/system/sshd.service.d/installer.conf b/installimg/8.2.updates/etc/systemd/system/sshd.service.d/installer.conf new file mode 100644 index 0000000..a68ce22 --- /dev/null +++ b/installimg/8.2.updates/etc/systemd/system/sshd.service.d/installer.conf @@ -0,0 +1,5 @@ +[Unit] +ConditionKernelCommandLine=sshpassword + +[Service] +ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd' diff --git a/installimg/8.3.0/etc/systemd/system/sshd.service.d/sshd_installer.conf b/installimg/8.3.0/etc/systemd/system/sshd.service.d/sshd_installer.conf new file mode 100644 index 0000000..a68ce22 --- /dev/null +++ b/installimg/8.3.0/etc/systemd/system/sshd.service.d/sshd_installer.conf @@ -0,0 +1,5 @@ +[Unit] +ConditionKernelCommandLine=sshpassword + +[Service] +ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd'