0,0 → 1,116 |
#!/usr/bin/perl -cw |
# |
# Configuration file written by : |
# * Hamza ESSAYEGH (Querdos) Laurent Roux |
# |
# /!\ Before putting this file in the iso, check the syntax with |
# `perl -cw auto_inst.cfg.pl` |
# /!\ The package list will be generated in the iso creation script |
|
$o = { |
# Interactive steps option |
# http://members.shaw.ca/mandrake/ -> section Replay Steps for |
# more informations |
'interactiveSteps' => [ |
# Select language(s) support to be installed. |
'selectLanguage', |
|
# Do partitionning, comment this if you want to automate this step |
'doPartitionDisks', |
|
# Select the desired keyboard. |
'selectKeyboard', |
|
# Allows you to Accept or Refuse the License Agreement. |
'acceptLicense', |
|
# Select the time zone, GMT/Local hardware clock and if you |
# want NTP installed. |
'summary', |
|
# ajouter des users |
'setRootPassword_addUser' |
|
], |
|
|
# Security level: |
# * 2 is for standard |
# * 3 for High |
# * 4 for Higher |
# * 5 for Paranoïd |
'security' => 2, |
|
|
# Authentication method |
'authentication' => { |
'shadow' => 1, |
'blowfish' => 1 |
}, |
|
|
|
# Default packages for the new distribution |
# The list will be filled by the iso creation script |
# Do not modify |
'default_packages' => [ |
], |
|
# Partitionning : control the partitioning of the target system's |
# hard disk drives |
'partitioning' => { |
# Set to 1 if disk partitions are to be defined by the |
# option partitions |
'auto_allocate' => 1, |
|
# 1: all the existing partitions on ALL disks are to be cleared |
# and replaced |
# 0: the disks are to be left untouched or, you are goeing to |
# use "clear" instead |
'clearall' => 1 |
}, |
|
'enabled_media' => [ |
'Core Release', |
'Nonfree Release' |
], |
|
|
# Post installation script, executed as root in the installed |
# environments and not inside the DrakX installation program |
'postInstallNonRooted' => " |
|
# Editing bashrc |
touch /mnt/root/.bash_history |
echo 'cd alcasar*' >> /mnt/root/.bash_history |
echo './alcasar.sh -i' >> /mnt/root/.bash_history |
|
# Copying Alcasar archive to the root directory |
tar -xf /tmp/media/x86_64/install/alcasar/alcasar-*.tar.gz -C /mnt/root/ |
|
# Allow root shell login |
rm -f /mnt/etc/securetty |
|
# Install server kernel |
urpmi --root /mnt/ --auto /tmp/media/x86_64/media/core/kernel-server-4*.rpm --no-verify-rpm |
|
# Lock kernel version (exclude from further updates) |
echo '/^kernel/' > /mnt/etc/urpmi/skip.list |
|
# Place ISO_INSTALL flag |
touch /mnt/root/iso_install |
", |
|
'postInstall' => " |
#sert à la syncro des DD en cas d'un RAID |
dracut -f -H |
#pour syncro horloge |
hwclock --systohc --utc |
", |
|
|
# Exit without prompt after installation is finished |
# 0 - prompt the installer to re-boot and wait |
# 1 - reboot the computer automatically |
'autoExitInstall' => 1 |
}; |