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:
parent
b25e081537
commit
4ec07345cf
@ -3,4 +3,8 @@
|
|||||||
<!-- The password here does not matter, it will be erased in config.sh -->
|
<!-- The password here does not matter, it will be erased in config.sh -->
|
||||||
<user name="root" groups="root" password="linux" home="/root" pwdformat="plain" />
|
<user name="root" groups="root" password="linux" home="/root" pwdformat="plain" />
|
||||||
</users>
|
</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>
|
</image>
|
||||||
|
@ -63,8 +63,10 @@ fi
|
|||||||
# Delete & lock the root user password
|
# Delete & lock the root user password
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then
|
if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then
|
||||||
passwd -d root
|
if [[ "$kiwi_profiles" != *"P550"* ]]; then
|
||||||
passwd -l root
|
passwd -d root
|
||||||
|
passwd -l root
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#======================================
|
#======================================
|
||||||
@ -119,7 +121,7 @@ fi
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
|
|
||||||
if [[ "$kiwi_profiles" == *"Disk"* ]]; then
|
if [[ "$kiwi_profiles" == *"Disk"* ]]; then
|
||||||
if [[ "$kiwi_profiles" != *"GNOME"* ]]; then
|
if [[ "$kiwi_profiles" != *"GNOME"* ]] && [[ "$kiwi_profiles" != *"P550"* ]]; then
|
||||||
## Enable initial-setup
|
## Enable initial-setup
|
||||||
systemctl enable initial-setup.service
|
systemctl enable initial-setup.service
|
||||||
## Enable reconfig mode
|
## Enable reconfig mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user