Subversion Repositories ALCASAR

Rev

Rev 2893 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2672 rexy 1
#!/usr/bin/perl -cw
2
#
3
# Configuration file written by :
2944 rexy 4
# 	* Hamza ESSAYEGH (Querdos)   Laurent Roux   Rexy
2672 rexy 5
#
6
# /!\ Before putting this file in the iso, check the syntax with
7
# 	  `perl -cw auto_inst.cfg.pl`
8
# /!\ The package list will be generated in the iso creation script
2944 rexy 9
# See https://wiki.mageia.org/en/Auto_inst for more informations
10
 
2672 rexy 11
$o = {
12
    	# Interactive steps option
13
	'interactiveSteps' => [
14
		# Select language(s) support to be installed.
15
		'selectLanguage',
16
 
17
		# Do partitionning, comment this if you want to automate this step
18
		'doPartitionDisks',
19
 
20
		# Select the desired keyboard.
21
		'selectKeyboard',
22
 
23
		# Allows you to Accept or Refuse the License Agreement.
24
		'acceptLicense',
25
 
26
		# Select the time zone, GMT/Local hardware clock and if you
27
		# want NTP installed.
28
		'summary',
29
 
30
		# ajouter des users
31
		'setRootPassword_addUser'
32
 
33
	],
34
 
35
 
36
	# Security level:
37
	# 	* 2 is for standard
38
	#	* 3 for High
39
	#	* 4 for Higher
40
	#	* 5 for Paranoïd
41
	'security' => 2,
42
 
43
 
44
	# Authentication method
45
	'authentication' => {
46
		'shadow' 	=> 1,
47
		'blowfish' 	=> 1
48
	},
49
 
50
 
51
 
52
	# Default packages for the new distribution
53
	# The list will be filled by the iso creation script
54
	# Do not modify
55
	'default_packages' => [
56
	],
57
 
58
	# Partitionning : control the partitioning of the target system's
59
	# hard disk drives
60
	'partitioning' => {
61
		# Set to 1 if disk partitions are to be defined by the
62
		# option partitions
63
		'auto_allocate' => 1,
64
 
65
		# 1: all the existing partitions on ALL disks are to be cleared
66
		# 	 and replaced
67
		# 0: the disks are to be left untouched or, you are goeing to
68
		#	 use "clear" instead
69
		'clearall' 		=> 1
70
	},
71
 
2944 rexy 72
	'enabled_media' => [
73
		'Core Release (Installer)',
74
		'Nonfree Release (Installer)'
75
	],
76
 
77
 
78
	'X' => { 'disabled' => 1 },
2672 rexy 79
 
80
	# Post installation script, executed as root in the installed
81
	# environments and not inside the DrakX installation program
82
	'postInstallNonRooted' => "
83
 
84
		# Editing bashrc
85
		touch /mnt/root/.bash_history
86
		echo 'cd alcasar*' >> /mnt/root/.bash_history
87
		echo './alcasar.sh -i' >> /mnt/root/.bash_history
88
 
89
		# Copying Alcasar archive to the root directory
90
		tar -xf /tmp/media/x86_64/install/alcasar/alcasar-*.tar.gz -C /mnt/root/
91
 
92
		# Allow root shell login
93
		rm -f /mnt/etc/securetty
2944 rexy 94
 
2672 rexy 95
		# Lock kernel version (exclude from further updates)
96
		echo '/^kernel/' > /mnt/etc/urpmi/skip.list
97
	",
98
 
99
	'postInstall' => "
2944 rexy 100
		# synchro des DD en cas d'un RAID
101
		dracut -f -H
102
		# synchro horloge
103
		hwclock --systohc --utc
2672 rexy 104
     ",
105
 
106
 
107
	# Exit without prompt after installation is finished
108
	# 0 - prompt the installer to re-boot and wait
109
	# 1 - reboot the computer automatically
110
	'autoExitInstall' => 1
111
};