rhinstaller / initial-setup

The Initial Setup utility takes care of post-installation configuration of an installed system.
GNU General Public License v2.0
27 stars 32 forks source link

Backport s390 ssh fix (port from Fedora) #128

Closed M4rtinK closed 3 years ago

M4rtinK commented 3 years ago

On the s390 Initial Setup is started upon SSH login by a profile script.

The multi TTY handler is not really intended to handle this usecase, so disable it when starting Initial Setup in the SSH session. This is achieved via the new --no-multi-tty command line option, which disables multi TTY handler when passed to Initial Setup at startup.

Also make sure to not only disable the Initial Setup service but also to stop it upon successful completion of Initial Setup via SSH. Otherwise the "regular" Initial Setup might still be running and blocking login on graphical and serial consoles.

Resolves: rhbz#1951577

Cherry picked from #127.

M4rtinK commented 3 years ago

Testing on a RHEL 9 x86 VM with manually created /etc/profile.d/initial-setup.sh also indicates everything is operational. :)