Skip to content

Commit

Permalink
[centos][arm] Provide centos-7 environments for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
p-jacquot authored and npf committed Jun 20, 2023
1 parent f91231d commit 09d8146
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 7 deletions.
30 changes: 30 additions & 0 deletions from_scratch/aarch64/centos-7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#==============================================================================
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
#==============================================================================
#
# DESCRIPTION: CentOS 8 ARM64 generic recipe using the netinstall mechanism
#
# Uses the netinstall + kickstart mechanism
#
#==============================================================================
---
extend: centos-base.yaml
global:
release_major: 7
release_number: $${release_major}

mirror_base_url: http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos-altarch/
installer_iso_finder_mirror_url: $${mirror_base_url}$${release_major}/os/$${arch}
mirror_url: $${mirror_base_url}$${release_major}/os/$${arch}

installer_iso_finder_mirror_url: $${mirror_base_url}
installer_iso_finder_args: $${distrib} $${release_major} $${arch} $${installer_iso_finder_mirror_url}

bootstrap:
- "@base"

setup:
- "@base"

export:
- "@base"
54 changes: 54 additions & 0 deletions steps/data/kickstart/centos7-aarch64-ks.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
install
url --url="http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos-altarch/7/os/aarch64/"

lang en_US.UTF-8
keyboard --vckeymap=us --xlayouts='us'
timezone Europe/Paris --isUtc --ntpservers=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org

network --device=eth0 --bootproto=dhcp --ipv6=auto --activate
firewall --enable --ssh
selinux --disabled
rootpw kameleon

text
skipx
logging --level=info

## Parition
clearpart --all --initlabel
bootloader --location=mbr
zerombr
# Disk partitioning information
# autopart
reqpart
part /boot --fstype="ext4" --size=500
part / --fstype="ext4" --size=3000 --grow


authconfig --enableshadow --passalgo=sha512
auth --useshadow --enablemd5
firstboot --disabled
reboot

%packages
@Core
-*firmware
-audit*
-libX*
-fontconfig
-freetype
dracut-config-generic
-dracut-config-rescue
bzip2
openssh-clients
openssh-server
grub2-efi-aa64-modules
efibootmgr
%end

%post
# Update distribution
yum update -y
# Make ssh quicker in disconnected situations.
echo 'UseDNS no' >> /etc/ssh/sshd_config
%end
11 changes: 4 additions & 7 deletions steps/setup/centos/fix-swap.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
- fix-swap:
- test:
- exec_local: test "$${release_major}" == "8"
- group:
- local2in:
- $${kameleon_data_dir}/setup/centos/fix-swap.service
- /etc/systemd/system/fix-swap.service
- exec_in: /usr/bin/systemctl enable fix-swap.service
- local2in:
- $${kameleon_data_dir}/setup/centos/fix-swap.service
- /etc/systemd/system/fix-swap.service
- exec_in: /usr/bin/systemctl enable fix-swap.service

0 comments on commit 09d8146

Please sign in to comment.