Skip to content

Commit bf8eee1

Browse files
authored
Merge pull request #2 from GIJack/update_for_arch
Update init.arch.sh for renamed cloud-init services
2 parents ed4cf4e + 5cc5085 commit bf8eee1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

autorun/init.arch.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ local_config="/init.conf"
1717
# packages that need to be installed
1818
system_packages="base cloud-init cloud-utils openssh mkinitcpio"
1919
# systemd services that need to be enabled
20-
system_services="systemd-networkd systemd-resolved sshd cloud-init-local cloud-init cloud-config cloud-final"
20+
system_services="systemd-networkd systemd-resolved sshd cloud-init-local cloud-init-main cloud-config cloud-final"
2121
# kernel modules that get added to /etc/mkinitcpio
2222
initcpio_modules="virtio virtio_pci virtio_blk virtio_net virtio_ring"
2323
# block device parition with root fs, minus the /dev/ part
@@ -118,6 +118,10 @@ parse_environment(){
118118
install_syslinux() {
119119
submsg "Configuring Syslinux Bootloader"
120120
local -i exit_n=0
121+
# As per wiki - March 2025
122+
mkdir -p /boot/syslinux
123+
cp /usr/lib/syslinux/bios/*.c32 /boot/syslinux/
124+
extlinux --install /boot/syslinux
121125
syslinux-install_update -i -a -m || exit_n+=1
122126
sed -i s/sda3/${root_part}/g /boot/syslinux/syslinux.cfg || exit_n+=1
123127
sed -i s/initramfs-linux/initramfs-${KERNEL}/g /boot/syslinux/syslinux.cfg || exit_n+=1

gen_cloud_template.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DEB_BASE_PACKAGES="cloud-init cloud-initramfs-growroot cloud-guest-utils openssh
2020
REDHAT_BASE_PACKAGES="openssh-server cloud-init"
2121
REDHAT_BASE_GROUPS="Base"
2222
BASE_SYSTEM_SERVICES="sshd cloud-init-local cloud-init-main cloud-config cloud-final"
23+
BASE_SYSTEM_SERVICES_ARCH="sshd cloud-init-local cloud-init-main cloud-config cloud-final"
2324
BASE_INITRAMDISK_MODULES="virtio virtio_pci virtio_blk virtio_net virtio_ring"
2425
SCRIPT_BASE_DIR="/usr/share/disk-image-scripts"
2526
PACKAGE_LIST_FILE="addedpacks"

0 commit comments

Comments
 (0)