1
0

Merge branch 'master' of git.labolyon.fr:DTux/config_lalis

This commit is contained in:
Daniel Tartavel 2019-03-06 11:10:31 +01:00
commit a3cc7d0cf1
8 changed files with 455 additions and 214 deletions

View File

@ -4,7 +4,7 @@
# You can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
# (note the '#!/usr/bin/perl -cw' on the first line).
$o = {
'X' => {
'X' => {
'monitors' => [
{
'VendorName' => 'Plug\'n Play',
@ -13,12 +13,12 @@ $o = {
],
'resolution_wanted' => 'x'
},
'authentication' => {
'authentication' => {
'sha512' => 1,
'shadow' => 1
},
'autoExitInstall' => '1',
'default_packages' => [
'autoExitInstall' => '1',
'default_packages' => [
'acpi',
'acpid',
'akonadi',
@ -282,7 +282,6 @@ $o = {
'netprofile-plugin-urpmi',
'nmap',
'notification-daemon-engine-nodoka',
'npapi-vlc',
'nss',
'nss-myhostname',
'ntfs-3g',
@ -357,6 +356,7 @@ $o = {
'systemsettings',
'task-codec-audio',
'task-codec-video',
'task-lalis',
'task-plasma5-minimal',
'task-pulseaudio',
'telepathy-haze',
@ -400,7 +400,7 @@ $o = {
'zeroconf-ioslave',
'zip'
],
'enabled_media' => [
'enabled_media' => [
'Core Release',
'Core Updates',
'Nonfree Release',
@ -417,7 +417,7 @@ $o = {
'GRP_TOGGLE' => '',
'KEYBOARD' => 'fr'
},
'locale' => {
'locale' => {
'IM' => undef,
'country' => 'FR',
'lang' => 'fr',
@ -430,7 +430,7 @@ $o = {
'numlock' => 1,
'HDPARM' => 1
},
'mouse' => {
'mouse' => {
'EmulateWheel' => undef,
'MOUSETYPE' => 'ps/2',
'Protocol' => 'ExplorerPS/2',
@ -452,20 +452,20 @@ $o = {
'synaptics' => undef,
'type' => 'Universal',
'wacom' => []
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
@ -473,9 +473,9 @@ $o = {
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'bootloader' => {
'method' => 'grub2-graphic',
@ -483,45 +483,9 @@ $o = {
'timeout' => 5,
'crushMbr' => 1,
},
'partitioning' => {
'auto_allocate' => '1',
'clearall' => 1,
'eraseBadPartitions' => 0,
'no_bad_drives' => 0,
},
'partitions' => [
{
'fs_type' => 'ext4',
'hd' => 'sda',
'mntpoint' => '/boot',
'options' => 'relatime,acl',
'size' => 1562500
},
{
'fs_type' => 'ext4',
'hd' => 'sda',
'mntpoint' => '/',
'options' => 'relatime,acl',
'size' => 39062500
},
{
'fs_type' => 'swap',
'hd' => 'sda',
'mntpoint' => 'swap',
'options' => 'defaults',
'size' => 7812500
},
{
'fs_type' => 'ext4',
'hd' => 'sda',
'mntpoint' => '/home',
'options' => 'relatime,acl',
'ratio' => 100
},
],
'security' => 1,
'security_user' => undef,
'superuser' => {
'security' => 1,
'security_user' => undef,
'superuser' => {
'gid' => '0',
'home' => '/root',
'pw' => '$6$4olYuu4o35YoPivZ$jJVF1JHdP9g2rMRivkHywyPZfHe/b/d9RtD09/0p8NBRmCgTQy0x5rgHcBm18D66Dqf0HSZcd8QjSAgiAaV1/1',
@ -536,14 +500,14 @@ $o = {
},
'users' => [
{
'gid' => undef,
'gid' => '500',
'groups' => [],
'icon' => 'default',
'name' => 'utilisateur',
'password' => 'utilisateur',
'name' => 'lalis',
'password' => 'lalis',
'realname' => undef,
'shell' => '/bin/bash',
'uid' => undef
'uid' => '500'
}
]
};

View File

@ -14,8 +14,8 @@ $o = {
'resolution_wanted' => 'x'
},
'authentication' => {
'sha512' => 1,
'shadow' => 1
'sha512' => 1,
'shadow' => 1
},
'autoExitInstall' => '0',
'default_packages' => [
@ -282,7 +282,6 @@ $o = {
'netprofile-plugin-urpmi',
'nmap',
'notification-daemon-engine-nodoka',
'npapi-vlc',
'nss',
'nss-myhostname',
'ntfs-3g',
@ -357,6 +356,7 @@ $o = {
'systemsettings',
'task-codec-audio',
'task-codec-video',
'task-lalis',
'task-plasma5-minimal',
'task-pulseaudio',
'telepathy-haze',
@ -452,28 +452,28 @@ $o = {
'wacom' => []
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
'dnsServer' => undef,
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
'dnsServer' => undef,
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'bootloader' => {
'method' => 'grub2-graphic',
@ -534,14 +534,14 @@ $o = {
},
'users' => [
{
'gid' => undef,
'gid' => '500',
'groups' => [],
'icon' => 'default',
'name' => 'utilisateur',
'password' => 'utilisateur',
'name' => 'lalis',
'password' => 'lalis',
'realname' => undef,
'shell' => '/bin/bash',
'uid' => undef
'uid' => '500'
}
]
};

View File

@ -19,87 +19,64 @@ $o = {
},
'autoExitInstall' => '1',
'default_packages' => [
],
'enabled_media' => [
'Core Release',
'Core Updates',
'Nonfree Release',
'Nonfree Updates',
'Tainted Release',
'Tainted Updates'
],
'enabled_media' => [
'Core Release',
'Core Updates',
'Nonfree Release',
'Nonfree Updates',
'Tainted Release',
'Tainted Updates'
],
'interactiveSteps' => [
'summary'
'summary'
],
'keyboard' => {
'GRP_TOGGLE' => '',
'KEYBOARD' => 'fr'
},
'locale' => {
'IM' => undef,
'country' => 'FR',
'lang' => 'fr',
'langs' => {
'fr' => 1
},
'utf8' => 1
'GRP_TOGGLE' => '',
'KEYBOARD' => 'fr'
},
'locale' => {
'IM' => undef,
'country' => 'FR',
'lang' => 'fr',
'langs' => {
'fr' => 1
},
'utf8' => 1
},
'miscellaneous' => {
'numlock' => 1,
'HDPARM' => 1
},
'mouse' => {
'EmulateWheel' => undef,
'MOUSETYPE' => 'ps/2',
'Protocol' => 'ExplorerPS/2',
'device' => 'input/mice',
'evdev_mice' => [
{
'HWheelRelativeAxisButtons' => '7 6',
'device' => '/dev/input/by-id/usb-noserial-event-mouse'
}
],
'evdev_mice_all' => [
{
'HWheelRelativeAxisButtons' => '7 6',
'device' => '/dev/input/by-id/usb-noserial-event-mouse'
}
],
'name' => 'Any PS/2 & USB mice',
'nbuttons' => 7,
'synaptics' => undef,
'type' => 'Universal',
'wacom' => []
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
},
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
'dnsServer' => undef,
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'security' => 1,
'security_user' => undef,
'timezone' => {
'UTC' => 0,
'ntp' => 'pool.ntp.org',
'timezone' => 'Europe/Paris'
},
};
'security' => 1,
'security_user' => undef,
'timezone' => {
'UTC' => 0,
'ntp' => 'pool.ntp.org',
'timezone' => 'Europe/Paris'
},
};

View File

@ -1,61 +1,81 @@
# DO NOT EDIT auto_generated by drakpxelinux.pl
PROMPT 1
DEFAULT 1
DEFAULT 6-64
DISPLAY messages
TIMEOUT 50
TIMEOUT 0
F1 help.txt
label local
LOCALBOOT 0
label efface disque
KERNEL images/memdisk
APPEND iso initrd=images/dban-2.3.0_i586.iso raw
label 5
KERNEL images/vmlinuz-cauldron64
APPEND initrd=images/cauldron64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg.pl root=/dev/ram3 rw
label live plasma
KERNEL images/memdisk
APPEND iso initrd=images/ raw
label 6
KERNEL images/vmlinuz-cauldron
APPEND initrd=images/cauldron.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg.pl root=/dev/ram3 rw
label 2
KERNEL images/vmlinuz-mageia6
APPEND initrd=images/mageia6.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/6_auto_inst.cfg.pl root=/dev/ram3 rw
label 1
label 6-64
KERNEL images/vmlinuz-mageia6_64
APPEND initrd=images/mageia6_64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/6_auto_inst.cfg.pl root=/dev/ram3 rw
label 7
KERNEL images/vmlinuz-cauldron64
APPEND initrd=images/cauldron64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label 8
KERNEL images/vmlinuz-cauldron
APPEND initrd=images/cauldron.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label 4
label 6-32
KERNEL images/vmlinuz-mageia6
APPEND initrd=images/mageia6.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/6_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label 3
APPEND initrd=images/mageia6.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/6_auto_inst.cfg.pl root=/dev/ram3 rw
label 6-64f
KERNEL images/vmlinuz-mageia6_64
APPEND initrd=images/mageia6_64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/6_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label 11
KERNEL images/vmlinuz-cauldron64
APPEND initrd=images/cauldron64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw
label 12
KERNEL images/vmlinuz-cauldron
APPEND initrd=images/cauldron.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw
label 10
label 6-32f
KERNEL images/vmlinuz-mageia6
APPEND initrd=images/mageia6.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw
APPEND initrd=images/mageia6.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/6_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label 9
label 6-64u
KERNEL images/vmlinuz-mageia6_64
APPEND initrd=images/mageia6_64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw
label 6-32u
KERNEL images/vmlinuz-mageia6
APPEND initrd=images/mageia6.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/6/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw
label 7-64
KERNEL images/vmlinuz-mageia7_64
APPEND initrd=images/mageia7_64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/7/ auto_install=/mageia/distrib/7_auto_inst.cfg.pl root=/dev/ram3 rw
label 7-32
KERNEL images/vmlinuz-mageia7
APPEND initrd=images/mageia7.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/7/ auto_install=/mageia/distrib/7_auto_inst.cfg.pl root=/dev/ram3 rw
label 7-64f
KERNEL images/vmlinuz-mageia7_64
APPEND initrd=images/mageia7_64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/7/ auto_install=/mageia/distrib/7_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label 7-32f
KERNEL images/vmlinuz-mageia7
APPEND initrd=images/mageia7.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/7/ auto_install=/mageia/distrib/7_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label c64
KERNEL images/vmlinuz-cauldron64
APPEND initrd=images/cauldron64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg.pl root=/dev/ram3 rw
label c32
KERNEL images/vmlinuz-cauldron
APPEND initrd=images/cauldron.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg.pl root=/dev/ram3 rw
label c64f
KERNEL images/vmlinuz-cauldron64
APPEND initrd=images/cauldron64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label c32f
KERNEL images/vmlinuz-cauldron
APPEND initrd=images/cauldron.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_fullauto.pl root=/dev/ram3 rw
label c64u
KERNEL images/vmlinuz-cauldron64
APPEND initrd=images/cauldron64.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw
label c32u
KERNEL images/vmlinuz-cauldron
APPEND initrd=images/cauldron.rdz ramdisk_size=128000 vga=788 automatic=method:http,interface:auto,network:dhcp,server:192.168.1.253,directory:/mageia/distrib/cauldron/ auto_install=/mageia/distrib/cauldron_auto_inst.cfg_upgrade.pl root=/dev/ram3 rw

View File

@ -1,15 +1,32 @@
Images disponibles:
---------------------
Par défaut Mageia 6 64 bits
1 : Mageia 6 64 bits
2 : Mageia 6 32 bits
3 : Mageia 6 64 bits full auto ( DANGER: supprime toutes les partitions )
4 : Mageia 6 32 bits full auto ( DANGER: supprime toutes les partitions )
5 : Cauldron 64 bits
6 : Cauldron 32 bits
7 : Cauldron 64 bits full auto ( DANGER: supprime toutes les partitions )
8 : Cauldron 32 bits full auto ( DANGER: supprime toutes les partitions )
9 : Mageia 6 64 bits upgrade from Mageia 5 64 bits
10: Mageia 6 32 bits upgrade from Mageia 5 64 bits
11: Cauldron 64 bits upgrade from Mageia 6 64 bits
12: Cauldron 32 bits upgrade from Mageia 6 64 bits
Par défaut Mageia 6 64 bits ( option 6-64 )
6-64 : Mageia 6 64 bits
6-32 : Mageia 6 32 bits
6-64f : Mageia 6 64 bits full auto ( DANGER: supprime toutes les partitions )
6-32f : Mageia 6 32 bits full auto ( DANGER: supprime toutes les partitions )
Mise à niveau de Mageia 5 vers Mageia 6
6-64u : Mageia 6 64 bits upgrade from Mageia 5 64 bits
6-32u : Mageia 6 32 bits upgrade from Mageia 5 64 bits
7-64 : Mageia 7 64 bits
7-32 : Mageia 7 32 bits
7-64f : Mageia 7 64 bits full auto ( DANGER: supprime toutes les partitions )
7-32f : Mageia 7 32 bits full auto ( DANGER: supprime toutes les partitions )
Mise à niveau de Mageia 6 vers Mageia 7
7-64u : Mageia 7 64 bits upgrade from Mageia 6 64 bits
7-32u : Mageia 7 32 bits upgrade from Mageia 6 64 bits
CI-DESSOUS LA VERSION DE MAGEIA EN COURS DE DÉVELOPPEMENT
c64 : Mageia cauldron 64 bits
c32 : Mageia cauldron 32 bits
c64f : Mageia cauldron 64 bits full auto ( DANGER: supprime toutes les partitions )
c32f : Mageia cauldron 32 bits full auto ( DANGER: supprime toutes les partitions )
Mise à niveau de Mageia 7 vers Cauldron
c64u : Mageia cauldron 64 bits upgrade from Mageia 7 64 bits
c32u : Mageia cauldron 32 bits upgrade from Mageia 7 64 bits
efface disk : effacement sécurisé deu disque avec dban

24
messages Normal file
View File

@ -0,0 +1,24 @@
Par défaut Mageia 6 64 bits ( option 6-64 )
6-64 : Mageia 6 64 bits
6-32 : Mageia 6 32 bits
6-64f : Mageia 6 64 bits full auto ( DANGER: supprime toutes les partitions )
6-32f : Mageia 6 32 bits full auto ( DANGER: supprime toutes les partitions )
6-64u : Mageia 6 64 bits upgrade from Mageia 5 64 bits
6-32u : Mageia 6 32 bits upgrade from Mageia 5 64 bits
7-64 : Mageia 7 64 bits
7-32 : Mageia 7 32 bits
7-64f : Mageia 7 64 bits full auto ( DANGER: supprime toutes les partitions )
7-32f : Mageia 7 32 bits full auto ( DANGER: supprime toutes les partitions )
7-64u : Mageia 7 64 bits upgrade from Mageia 5 64 bits
7-32u : Mageia 7 32 bits upgrade from Mageia 5 64 bits
ATTENTION VERSION DE DÉVELOPPEMENT
c64 : Mageia cauldron 64 bits
c32 : Mageia cauldron 32 bits
c64f : Mageia cauldron 64 bits full auto ( DANGER: supprime toutes les partitions )
c32f : Mageia cauldron 32 bits full auto ( DANGER: supprime toutes les partitions )
c64u : Mageia cauldron 64 bits upgrade from Mageia 6 64 bits
c32u : Mageia cauldron 32 bits upgrade from Mageia 6 64 bits
efface disk : effacement sécurisé du disque avec dban

153
mirror_mageia Normal file
View File

@ -0,0 +1,153 @@
#!/bin/sh
PRESENT=7
OLD=6
DEFUSER="root"
DEFGROUP="lalis"
DESTMAIL="contact@lalis.fr"
FROMMAIL="root@lalis.fr"
TASKRPM="task-lalis"
MIRRORPATH="/mirror/mageia"
MEDIAINFO_PATH="$MIRRORPATH/config_lalis/media_info"
MSG=/tmp/mirror_mageia.mail
SERVEUR="rsync://fr2.rpmfind.net/linux/mageia"
#SERVEUR="http://ftp.free.fr/mirrors/mageia.org"
#SERVEUR="rsync://ftp.acc.umu.se/mirror/mageia/"
#SERVEUR="rsync://ftp.belnet.be/mageia"
function title()
{
echo -e "\e[1;32m$1\e[0m"
echo -e "$1" >>$MSG
}
function info()
{
echo -e "\e[36m$1\e[0m"
echo -e "$1" >>$MSG
}
iferror( ) #$RESULT, $TXT, $LINENO
{
if [ "$1" -eq 0 ];then
echo -e "$2: réussi"
#echo -e "$2: réussi" >>$MSG
else
echo -e "\e[36mligne $3 - $2\e[0m: échoué"
echo -e "ligne $3 - $2: échoué" >>$MSG
fi
}
echo "Synchronisation miroirs Mageia"
pidof -o %PPID -x -s mirror_mageia
if [ $? -eq 0 ];then
echo "mirror_mageia déjà lancé"
else
#Mageia current version
echo "Subject: Synchro miroirs" >$MSG
title "Synchronisation de Mageia $PRESENT"
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude="*testing" --exclude="*debug/" --exclude="SRPMS/" $SERVEUR/distrib/$PRESENT/ "$MIRRORPATH"/distrib/$PRESENT/
if [ $? -eq 0 ]; then
cd "$MIRRORPATH"/distrib/$PRESENT
cp "$MEDIAINFO_PATH"/"$PRESENT"_i586_media.cfg ./i586/media/media_info/media.cfg
iferror "$?" "Copie de "$PRESENT"_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
cp "$MEDIAINFO_PATH"/"$PRESENT"_x86_64_media.cfg ./x86_64/media/media_info/media.cf
iferror "$?" "Copie de "$PRESENT"_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
cp "$MIRRORPATH/$TASKRPM"* ./i586/media/core/release/
iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
cp "$MIRRORPATH/$TASKRPM"* ./x86_64/media/core/release/
iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/$PRESENT
chmod a+rX -R "$MIRRORPATH"/distrib/$PRESENT
rsync "$MIRRORPATH"/distrib/$PRESENT/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia$PRESENT
iferror "$?" "Copie de vmlinuz-$PRESENT" $LINENO
rsync "$MIRRORPATH"/distrib/$PRESENT/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia"$PRESENT"_64
iferror "$?" "Copie de vmlinuz-$PRESENT" $LINENO
rsync "$MIRRORPATH"/distrib/$PRESENT/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia$PRESENT.rdz
iferror "$?" "Copie de mageia$PRESENT.rdz" $LINENO
rsync "$MIRRORPATH"/distrib/$PRESENT/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia"$PRESENT"_64.rdz
iferror "$?" "Copie de mageia"$PRESENT"64.rdz" $LINENO
else
info "Erreur rsync Mageia $PRESENT"
fi
rsync -avP --exclude "*GNOME*" $SERVEUR/iso/$PRESENT* "$MIRRORPATH"/iso/
iferror "$?" "rsync Mageia $PRESENT isos" $LINENO
#cauldron
title "Synchronisation de Mageia cauldron"
rsync -v -aHS --delete-after --delete-excluded --delay-updates --exclude=SRPMS/ --exclude "armv5tl/" --exclude=*testing --exclude="*debug/" $SERVEUR/distrib/cauldron/ "$MIRRORPATH"/distrib/cauldron/
if [ $? -eq 0 ]; then
cd "$MIRRORPATH"/distrib/cauldron
cp "$MEDIAINFO_PATH"/cauldron_i586_media.cfg ./i586/media/media_info/media.cfg
iferror "$?" "Copie de cauldron_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
cp "$MEDIAINFO_PATH"/cauldron_x86_64_media.cfg ./x86_64/media/media_info/media.cfg
iferror "$?" "Copie de cauldron_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
cp "$MIRRORPATH/$TASKRPM"* ./i586/media/core/release/
iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
cp "$MIRRORPATH/$TASKRPM"* ./x86_64/media/core/release/
iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/cauldron
chmod a+rX -R "$MIRRORPATH"/distrib/cauldron
rsync "$MIRRORPATH"/distrib/cauldron/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-cauldron
iferror "$?" "Copie de vmlinuz-cauldron" $LINENO
rsync "$MIRRORPATH"/distrib/cauldron/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-cauldron64
iferror "$?" "Copie de vmlinuz-cauldron64" $LINENO
rsync "$MIRRORPATH"/distrib/cauldron/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/cauldron.rdz
iferror "$?" "Copie de cauldron.rdz" $LINENO
rsync "$MIRRORPATH"/distrib/cauldron/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/cauldron64.rdz
iferror "$?" "Copie de cauldron64.rdz" $LINENO
else
info "erreur rsync cauldron"
fi
#Mageia $OLD
title "Synchronisation de Mageia $OLD"
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude=*testing --exclude=clef --exclude="*debug/" --exclude="armv5tl/" --exclude="SRPMS/" $SERVEUR/distrib/$OLD/ "$MIRRORPATH"/distrib/$OLD/
if [ $? -eq 0 ]; then
cd "$MIRRORPATH"/distrib/$OLD
cp "$MEDIAINFO_PATH"/"$OLD"_i586_media.cfg ./i586/media/media_info/media.cfg
iferror "$?" "Copie de "$OLD"_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
cp "$MEDIAINFO_PATH"/"$OLD"_x86_64_media.cfg ./x86_64/media/media_info/media.cf
iferror "$?" "Copie de "$OLD"_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
cp "$MIRRORPATH/$TASKRPM"* ./i586/media/core/release/
iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
cp "$MIRRORPATH/$TASKRPM"* ./x86_64/media/core/release/
iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/$OLD
chmod a+rX -R "$MIRRORPATH"/distrib/$OLD
rsync "$MIRRORPATH"/distrib/$OLD/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia6
iferror "$?" "Copie de vmlinuz-$OLD" $LINENO
rsync "$MIRRORPATH"/distrib/$OLD/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia6_64
iferror "$?" "Copie de vmlinuz-$OLD" $LINENO
rsync "$MIRRORPATH"/distrib/$OLD/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia6.rdz
iferror "$?" "Copie de $OLD.rdz" $LINENO
rsync "$MIRRORPATH"/distrib/$OLD/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia6_64.rdz
iferror "$?" "Copie de $OLD64.rdz" $LINENO
else
info "erreur rsync Mageia $OLD"
fi
rsync --exclude "*GNOME*" -avP $SERVEUR/iso/"$OLD"* "$MIRRORPATH"/iso/
iferror "$?" "rsync Mageia $OLD isos" $LINENO
#common
chown $DEFUSER:$DEFGROUP -R "$MIRRORPATH"/distrib
chmod a+rX -R "$MIRRORPATH"/distrib
sendmail -f $FROMMAIL $DESTMAIL <$MSG
fi

86
mirror_mageia_hd Executable file
View File

@ -0,0 +1,86 @@
#!/bin/sh
#mirror_mageia_hd
version="6"
dossier=""
boot=""
param=" --delete-excluded --exclude SRPMS/ --exclude *_testing/ --exclude */debug/ --exclude aarch64/ --exclude armv5tl/ --exclude armv7hl/ "
param_iso=""
for DIRECTORY in /run/media/$USER/*
do
echo "$DIRECTORY"
if [ -d "$DIRECTORY" ]; then
if [ -e "$DIRECTORY/mageia/distrib" ]; then
echo "$DIRECTORY/mageia/distrib trouvé"
dossier=$DIRECTORY/mageia/distrib
elif [ -e "$DIRECTORY/extlinux" ]; then
echo "$DIRECTORY/extlinux trouvé"
boot="$DIRECTORY"
fi
fi
done
if [ -z $dossier ] || [ -z $boot ]; then
for DIRECTORY in /mnt/tmp*
do
if [ -d "$DIRECTORY" ]; then
if [ -e "$DIRECTORY/mageia/distrib" ]; then
echo "$DIRECTORY/mageia/distrib trouvé"
dossier=$DIRECTORY/mageia/distrib
elif [ -e "$DIRECTORY/grub/menu.lst" ]; then
echo "$DIRECTORY/grub/menu.lst trouvé"
boot="$DIRECTORY"
fi
fi
done
fi
if [ -z $dossier ] || [ -z $boot ]; then
echo "Erreur dossiers non trouvés"
echo "BOOT=$boot"
echo "Dossier=$dossier"
exit 1
fi
if [ -d "/mirror/mageia/distrib/$version" ];then
serveur='/mirror'
else
serveur="rsync://fr2.rpmfind.net/linux"
fi
if [ -n $dossier ] && [ -n $boot ];then
# synchronisation du miroir
echo "rsync -avP $param $serveur/mageia/distrib/$version/ $dossier/$version/"
rsync -aP $param $serveur/mageia/distrib/$version $dossier/
# synchronisation des iso
rsync -aP --exclude "*GNOME*" --exclude "*rescue*" $serveur/mageia/iso/"$version".1 `dirname $dossier`/iso/
if [ -d $serveur/mageia.iso/"$vesion".1 ]; then
param_iso=" --delete-excluded --exclude '*Live*' "
fi
rsync -aP $param_iso --exclude "*GNOME*" --exclude "*rescue*" $serveur/mageia/iso/$version `dirname $dossier`/iso/
# copie du kernel et de initrd dans partition de boot
cd $dossier/$version
echo "rsync -aP i586/isolinux/i386/vmlinuz $boot/vmlinuz_"$version"_i586"
rsync -aP i586/isolinux/i386/vmlinuz "$boot"/vmlinuz_"$version"_i586
echo "rsync -aP x86_64/isolinux/x86_64/vmlinuz $boot/vmlinuz_"$version"_x86_64"
rsync -aP x86_64/isolinux/x86_64/vmlinuz "$boot"/vmlinuz_"$version"_x86_64
rsync -aP i586/isolinux/i386/all.rdz "$boot"/all_"$version"_i586.rdz
rsync -aP x86_64/isolinux/x86_64/all.rdz "$boot"/all_"$version"_x86_64.rdz
if [ -d "/mirror/mageia/distrib/cauldron" ];then
serveur='/mirror'
else
serveur="rsync://fr2.rpmfind.net/linux"
fi
rsync -aP $param $serveur/mageia/distrib/cauldron/i586 $dossier/cauldron/
cd $dossier/cauldron
rsync -aP i586/isolinux/i386/vmlinuz $boot/vmlinuz_cauldron_i586
# rsync -aP x86_64/isolinux/x86_64/vmlinuz $boot/vmlinuz_cauldron_x86_64
rsync -aP i586/isolinux/i386/all.rdz $boot/all_cauldron_i586.rdz
# rsync -aP x86_64/isolinux/x86_64/all.rdz $boot/all_cauldron_x86_64.rdz
fi