Commit 892e3e4c authored by Pierre Neyron's avatar Pierre Neyron 🚴

Merge branch 'kameleon-recipes_master'

parents a85a6f5a e9a6e4ef
......@@ -30,6 +30,8 @@ global:
installer_iso_finder_args: $${distrib} $${release_number} $${arch} $${mirror_base_url}
qemu_iso_path: $${kameleon_cwd}/$${distrib}.iso
# If memory size is too low, the VM crashes.
qemu_memory_size: 2G
base_kickstart_path: $${kameleon_data_dir}/kickstart/$${distrib}$${release_number}-ks.cfg
......
#==============================================================================
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
#==============================================================================
#
# DESCRIPTION: Centos 7 recipe using the netinstall mechanism
#
#==============================================================================
---
extend: centos-base.yaml
global:
release_number: 7
mirror_base_url: http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos-altarch/
mirror_url: $${mirror_base_url}$${release}/os/$${arch}/
bootstrap:
- "@base"
setup:
- "@base"
export:
- "@base"
......@@ -30,8 +30,10 @@ global:
installer_iso_finder_args: $${distrib} $${release_number} $${arch} $${mirror_base_url}
qemu_iso_path: $${kameleon_cwd}/$${distrib}.iso
# If memory size is too low, the VM crashes.
qemu_memory_size: 2G
base_kickstart_path: $${kameleon_data_dir}/kickstart/$${distrib}$${release_number}-ks.cfg
base_kickstart_path: $${kameleon_data_dir}/kickstart/$${distrib}$${release_number}-$${arch}-ks.cfg
qemu_sendkeys_commands: $${kameleon_data_dir}/qemu-sendkeys/netinst-$${distrib}-grub
......
......@@ -23,13 +23,19 @@ class LinkParser(HTMLParser):
if not contentType:
return
logger.debug("url = " + url );
logger.debug("contenType = " + contentType );
logger.debug("contentType = " + contentType );
if ';' in contentType:
(mediaType,charset) = contentType.split(";")
if mediaType =='text/html':
htmlBytes = response.read()
htmlString = htmlBytes.decode(charset.split("=")[1])
self.feed(htmlString)
charset = charset.split("=")[1]
else:
mediaType = contentType
# ISO-8859-1 is no longer the default charset, see https://tools.ietf.org/html/rfc7231#appendix-B
# Let's use UTF-8.
charset = "utf-8"
if mediaType =='text/html':
htmlBytes = response.read()
htmlString = htmlBytes.decode(charset)
self.feed(htmlString)
def handle_starttag(self, tag, attrs):
if tag == 'a':
......
install
url --url="http://mirror.centos.org/altarch/7/os/ppc64le/"
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
# Automatically creates PReP partition
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
%end
%post
# Update distribution
yum update -y
# Make ssh quicker in disconnected situations.
echo 'UseDNS no' >> /etc/ssh/sshd_config
%end
install
url --url="http://mirror.centos.org/centos/8/BaseOS/ppc64le/os"
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
firewall --enable --ssh
selinux --disabled
rootpw kameleon
text
skipx
logging --level=info
## Parition
clearpart --all --initlabel
bootloader --location=mbr
zerombr
# Disk partitioning information
# Automatically creates PReP partition
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
dracut-config-generic
tar
-dracut-config-rescue
%end
%post
# Update distribution
yum update -y
# Make ssh quicker in disconnected situations.
echo 'UseDNS no' >> /etc/ssh/sshd_config
%end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment