Subversion Repositories ALCASAR

Rev

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