Merge branch 'master' of git.labolyon.fr:DTux/config_lalis
This commit is contained in:
commit
a3cc7d0cf1
@ -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',
|
||||
@ -483,42 +483,6 @@ $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' => {
|
||||
@ -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'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
@ -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',
|
||||
@ -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'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
@ -48,29 +48,6 @@ $o = {
|
||||
'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' => {},
|
||||
|
@ -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 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 efface disque
|
||||
KERNEL images/memdisk
|
||||
APPEND iso initrd=images/dban-2.3.0_i586.iso 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 live plasma
|
||||
KERNEL images/memdisk
|
||||
APPEND iso initrd=images/ raw
|
||||
|
||||
|
||||
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
|
||||
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 3
|
||||
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
|
||||
|
43
help.txt
43
help.txt
@ -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
24
messages
Normal 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
153
mirror_mageia
Normal 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
86
mirror_mageia_hd
Executable 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
|
Reference in New Issue
Block a user