aboutsummaryrefslogtreecommitdiff
path: root/config.sh
diff options
from:
to:
context:
space:
mode:
authorGravatar Neal Gompa <ngompa@fedoraproject.org> 2024-07-22 17:09:39 -0400
committerGravatar Neal Gompa <ngompa@fedoraproject.org> 2024-07-24 07:13:41 -0400
commitc8229ee61ff0e91361e41ad4a11277bb4f3078ee (patch)
tree02c26000f125c87c14b3d27998844c3d7edb64a5 /config.sh
parentafdd23f5105f82c5a878b4260bd528b07223959b (diff)
downloadkiwi-descriptions-c8229ee61ff0e91361e41ad4a11277bb4f3078ee.tar.gz
kiwi-descriptions-c8229ee61ff0e91361e41ad4a11277bb4f3078ee.zip
components/boot: Add common configuration for disk images
This introduces a core disk configuration profile "BootDiskCore" that can be used for creating non-cloud bootable disks.
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/config.sh b/config.sh
index e998ac4..4e8d40f 100755
--- a/config.sh
+++ b/config.sh
@@ -46,7 +46,7 @@ fi
#======================================
# Delete & lock the root user password
#--------------------------------------
-if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then
+if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then
passwd -d root
passwd -l root
fi
@@ -93,6 +93,19 @@ if [[ "$kiwi_profiles" == *"Live"* ]]; then
fi
#======================================
+# Setup firstboot initial setup
+#--------------------------------------
+
+if [[ "$kiwi_profiles" == *"Disk"* ]]; then
+ if [[ "$kiwi_profiles" != *"GNOME"* ]]; then
+ ## Enable initial-setup
+ systemctl enable initial-setup.service
+ ## Enable reconfig mode
+ touch /etc/reconfigSys
+ fi
+fi
+
+#======================================
# Setup default target
#--------------------------------------
if [[ "$kiwi_profiles" != *"Container"* ]]; then
@@ -107,6 +120,15 @@ fi
# Setup default customizations
#--------------------------------------
+if [[ "$kiwi_profiles" == *"Disk"* ]]; then
+ # Find the architecture we are on
+ installarch=$(uname -m)
+ # Setup Raspberry Pi firmware
+ if [[ $installarch == "aarch64" ]]; then
+ cp -a /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin
+ fi
+fi
+
if [[ "$kiwi_profiles" == *"Azure"* ]]; then
cat > /etc/ssh/sshd_config.d/50-client-alive-interval.conf << EOF
ClientAliveInterval 120