-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[centos][arm] Provide centos-7 environments for ARM
- Loading branch information
Showing
3 changed files
with
88 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |