Subversion Repositories ALCASAR

Rev

Rev 2893 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2893 Rev 2944
Line 1... Line 1...
1
#!/usr/bin/perl -cw
1
#!/usr/bin/perl -cw
2
#
2
#
3
# Configuration file written by :
3
# Configuration file written by :
4
# 	* Hamza ESSAYEGH (Querdos)   Laurent Roux
4
# 	* Hamza ESSAYEGH (Querdos)   Laurent Roux   Rexy
5
#
5
#
6
# /!\ Before putting this file in the iso, check the syntax with
6
# /!\ Before putting this file in the iso, check the syntax with
7
# 	  `perl -cw auto_inst.cfg.pl`
7
# 	  `perl -cw auto_inst.cfg.pl`
8
# /!\ The package list will be generated in the iso creation script
8
# /!\ The package list will be generated in the iso creation script
-
 
9
# See https://wiki.mageia.org/en/Auto_inst for more informations
9
		
10
 
10
$o = {
11
$o = {
11
    	# Interactive steps option
12
    	# Interactive steps option
12
	# http://members.shaw.ca/mandrake/ -> section Replay Steps for
-
 
13
	# more informations
-
 
14
	'interactiveSteps' => [
13
	'interactiveSteps' => [
15
		# Select language(s) support to be installed.
14
		# Select language(s) support to be installed.
16
		'selectLanguage',
15
		'selectLanguage',
17
 
16
 
18
		# Do partitionning, comment this if you want to automate this step
17
		# Do partitionning, comment this if you want to automate this step
Line 68... Line 67...
68
		# 0: the disks are to be left untouched or, you are goeing to
67
		# 0: the disks are to be left untouched or, you are goeing to
69
		#	 use "clear" instead
68
		#	 use "clear" instead
70
		'clearall' 		=> 1
69
		'clearall' 		=> 1
71
	},
70
	},
72
 
71
 
73
       'enabled_media' => [
72
	'enabled_media' => [
74
			    'Core Release (Installer)',
73
		'Core Release (Installer)',
75
			    'Nonfree Release (Installer)'
74
		'Nonfree Release (Installer)'
76
			  ],
75
	],
-
 
76
	
77
 
77
	
-
 
78
	'X' => { 'disabled' => 1 },
78
 
79
 
79
	# Post installation script, executed as root in the installed
80
	# Post installation script, executed as root in the installed
80
	# environments and not inside the DrakX installation program
81
	# environments and not inside the DrakX installation program
81
	'postInstallNonRooted' => "
82
	'postInstallNonRooted' => "
82
 
83
 
Line 88... Line 89...
88
		# Copying Alcasar archive to the root directory
89
		# Copying Alcasar archive to the root directory
89
		tar -xf /tmp/media/x86_64/install/alcasar/alcasar-*.tar.gz -C /mnt/root/
90
		tar -xf /tmp/media/x86_64/install/alcasar/alcasar-*.tar.gz -C /mnt/root/
90
 
91
 
91
		# Allow root shell login
92
		# Allow root shell login
92
		rm -f /mnt/etc/securetty
93
		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
 
94
		
97
		# Lock kernel version (exclude from further updates)
95
		# Lock kernel version (exclude from further updates)
98
		echo '/^kernel/' > /mnt/etc/urpmi/skip.list
96
		echo '/^kernel/' > /mnt/etc/urpmi/skip.list
99
 
-
 
100
		# Place ISO_INSTALL flag
-
 
101
		touch /mnt/root/iso_install
-
 
102
	",
97
	",
103
 
98
 
104
	'postInstall' => "
99
	'postInstall' => "
105
	#sert à la synchro des DD en cas d'un RAID
100
		# synchro des DD en cas d'un RAID
106
	dracut -f -H
101
		dracut -f -H
107
	#pour synchro horloge
102
		# synchro horloge
108
	hwclock --systohc --utc
103
		hwclock --systohc --utc
109
     ",
104
     ",
110
 
105
 
111
 
106
 
112
	# Exit without prompt after installation is finished
107
	# Exit without prompt after installation is finished
113
	# 0 - prompt the installer to re-boot and wait
108
	# 0 - prompt the installer to re-boot and wait