From 4ec07345cfbad634658b03a91badaf6749bc2583 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Tue, 21 Jan 2025 10:05:50 +0100 Subject: [PATCH] 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 --- components/users.xml | 4 ++++ config.sh | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/users.xml b/components/users.xml index 08b91a1..977403c 100644 --- a/components/users.xml +++ b/components/users.xml @@ -3,4 +3,8 @@ + + + + diff --git a/config.sh b/config.sh index 6f63cb2..23b485e 100755 --- a/config.sh +++ b/config.sh @@ -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