Browse Source

add comments

ca-cert-and-multi-ks
Nicolas Massé 2 years ago
parent
commit
a9ada2c4df
  1. 55
      imagebuilder/kiosk.ks

55
imagebuilder/kiosk.ks

@ -1,15 +1,61 @@
##
## Environment setup
##
# French I18n
lang fr_FR.UTF-8 lang fr_FR.UTF-8
# French keyboard layout
keyboard fr keyboard fr
# Timezone is UTC to avoid issue with DST
timezone UTC --utc timezone UTC --utc
# Configure NTP
timesource --ntp-server=rhel.pool.ntp.org timesource --ntp-server=rhel.pool.ntp.org
# Which action to perform after install: poweroff or reboot
reboot reboot
# Install mode: text (interactive installs) or cmdline (unattended installs)
text text
##
## Storage configuration
##
# Clear the target disk
zerombr zerombr
# Remove existing partitions
clearpart --all --initlabel clearpart --all --initlabel
autopart --type=plain --fstype=xfs --nohome
network --bootproto=dhcp # Automatically create partitions required by hardware platform
rootpw --iscrypted __ROOT_PASSWORD_HASH__ # and add a separate /boot partition
reqpart --add-boot
# Create a PV, VG add LV for the system
part pv.01 --size=1 --grow --ondisk=vda
volgroup system pv.01
logvol / --fstype="xfs" --size=1 --grow --name=root --vgname=system
# Create a PV and VG for Microshift
part pv.02 --size=1 --grow --ondisk=vdb
volgroup data pv.02
##
## Network configuration
##
# Configure the first network device
network --bootproto=dhcp --device=enp1s0 --noipv6 --activate
# Configure hostname
network --hostname=kiosk.localdomain
##
## Ostree installation
##
# Use this line if creating an Edge Installer ISO that includes a local ostree commit # Use this line if creating an Edge Installer ISO that includes a local ostree commit
ostreesetup --nogpg --osname=rhel --remote=edge --url=file:///run/install/repo/ostree/repo --ref=rhel/9/x86_64/edge ostreesetup --nogpg --osname=rhel --remote=edge --url=file:///run/install/repo/ostree/repo --ref=rhel/9/x86_64/edge
@ -17,6 +63,9 @@ ostreesetup --nogpg --osname=rhel --remote=edge --url=file:///run/install/repo/o
# Use this to fetch from a remote URL # Use this to fetch from a remote URL
#ostreesetup --osname=rhel --url=http://192.168.0.116:30239/repo --ref=rhel/9/x86_64/edge --nogpg #ostreesetup --osname=rhel --url=http://192.168.0.116:30239/repo --ref=rhel/9/x86_64/edge --nogpg
##
## Post install scripts
##
%post --log=/var/log/anaconda/post-install.log --erroronfail %post --log=/var/log/anaconda/post-install.log --erroronfail
# Default to graphical boot target # Default to graphical boot target
systemctl set-default graphical.target systemctl set-default graphical.target

Loading…
Cancel
Save