diff options
| author | 2024-07-22 17:09:39 -0400 | |
|---|---|---|
| committer | 2024-07-24 07:13:41 -0400 | |
| commit | c8229ee61ff0e91361e41ad4a11277bb4f3078ee (patch) | |
| tree | 02c26000f125c87c14b3d27998844c3d7edb64a5 /config.sh | |
| parent | afdd23f5105f82c5a878b4260bd528b07223959b (diff) | |
| download | kiwi-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-x | config.sh | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -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 |