p550: Disable initial-setup

We keep hitting this situation on P550 where
systemd-vconsole-setup runs after initial-setup has already
been started. This causes virtual consoles to be re-initialized,
and as a consequence initial-setup stops accepting input and
becomes effectively stuck. This doesn't seem to be a problem on
other hardware, e.g. VF2.

Generally speaking having initial-setup run during the first
boot provides a good user experience and matches what other
architectures are doing, so we want to keep doing it, but the
issue mentioned above makes it a no-go for P550.

Until we've figured out how to prevent this from happening,
don't enable initial-setup and keep the default root password
around so that the machine can still be logged into.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Andrea Bolognani 2025-01-21 10:05:50 +01:00
parent b25e081537
commit 4ec07345cf
2 changed files with 9 additions and 3 deletions

View File

@ -3,4 +3,8 @@
<!-- The password here does not matter, it will be erased in config.sh -->
<user name="root" groups="root" password="linux" home="/root" pwdformat="plain" />
</users>
<users profiles="Server-Host-P550">
<!-- Same as above, but the password is retained in the installed system -->
<user name="root" groups="root" password="linux" home="/root" pwdformat="plain" />
</users>
</image>

View File

@ -63,8 +63,10 @@ fi
# Delete & lock the root user password
#--------------------------------------
if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then
passwd -d root
passwd -l root
if [[ "$kiwi_profiles" != *"P550"* ]]; then
passwd -d root
passwd -l root
fi
fi
#======================================
@ -119,7 +121,7 @@ fi
#--------------------------------------
if [[ "$kiwi_profiles" == *"Disk"* ]]; then
if [[ "$kiwi_profiles" != *"GNOME"* ]]; then
if [[ "$kiwi_profiles" != *"GNOME"* ]] && [[ "$kiwi_profiles" != *"P550"* ]]; then
## Enable initial-setup
systemctl enable initial-setup.service
## Enable reconfig mode