Subversion Repositories ALCASAR

Rev

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

Rev 2864 Rev 2878
Line 8... Line 8...
8
#     --lang, -l          Language for installation (optional)
8
#     --lang, -l          Language for installation (optional)
9
#                         Supported languages: fr;en
9
#                         Supported languages: fr;en
10
#
10
#
11
#######################
11
#######################
12
###### Variables ######
12
###### Variables ######
13
###############################################################################""
13
################################################################################
14
 
14
 
15
CURRENT_DIR="$(readlink -f "$(dirname $0)")"
15
CURRENT_DIR="$(readlink -f "$(dirname $0)")"
16
LOG_FILE="$CURRENT_DIR/build-image.log"
16
LOG_FILE="$CURRENT_DIR/build-image.log"
17
 
17
 
18
# Mageia
18
# Mageia
19
MAGEIA_VERSION=`cat /etc/release|cut -c 16`
19
MAGEIA_VERSION=`cat /etc/release|cut -d" " -f3`
20
ARCH=`cat /etc/release|cut -c 33-38`
20
ARCH=`cat /etc/release|cut -d" " -f6`
21
MAGEIA_NEW_DIR=/tmp/mageia_new
21
MAGEIA_NEW_DIR=/tmp/mageia_new
22
MAGEIA_OFFICIAL_DIR=/tmp/mageia_official
22
MAGEIA_OFFICIAL_DIR=/tmp/mageia_official
23
# ISO file
23
# ISO file
24
ISO_DIR="/var/iso"
24
ISO_DIR="/var/iso"
25
ISO_IN="$ISO_DIR/Mageia-$MAGEIA_VERSION-$ARCH.iso"
25
ISO_IN="$ISO_DIR/Mageia-$MAGEIA_VERSION-$ARCH.iso"
Line 38... Line 38...
38
ISO_SUPPORT="http://ftp.free.fr/mirrors/mageia.org/iso/$MAGEIA_VERSION/Mageia-$MAGEIA_VERSION-$ARCH/Mageia-$MAGEIA_VERSION-$ARCH.iso"
38
ISO_SUPPORT="http://ftp.free.fr/mirrors/mageia.org/iso/$MAGEIA_VERSION/Mageia-$MAGEIA_VERSION-$ARCH/Mageia-$MAGEIA_VERSION-$ARCH.iso"
39
ISO_MD5="http://ftp.free.fr/mirrors/mageia.org/iso/$MAGEIA_VERSION/Mageia-$MAGEIA_VERSION-$ARCH/Mageia-$MAGEIA_VERSION-$ARCH.iso.md5"
39
ISO_MD5="http://ftp.free.fr/mirrors/mageia.org/iso/$MAGEIA_VERSION/Mageia-$MAGEIA_VERSION-$ARCH/Mageia-$MAGEIA_VERSION-$ARCH.iso.md5"
40
 
40
 
41
# RPMs
41
# RPMs
42
RPM_DIR="/root/rpms"
42
RPM_DIR="/root/rpms"
43
BASE_RPM_LIST="acpi acpid alsa-utils aoss arp-scan basesystem bash-completion coreutils-doc cpupower curl dhcp-client dmraid dnf dnf-plugins-core dosfstools dracut drakx-net-text gpm grub2 grub2-efi grub2-mageia-theme harddrake hdparm hexedit info iwlwifi-agn-ucode kernel-server-latest kernel-firmware kernel-firmware-nonfree ldetect lftp lib64alsa-plugins lib64glib-networking-gnutls locales-en locales-fr lsof lvm2 mageia-theme-Default man-db mandi-ifw man-pages microcode microcode_ctl mtools ntfs-3g numlock os-prober p11-kit perl-Hal-Cdroms plymouth procmail python3 python3-dbus radeon-firmware ralink-firmware rtlwifi-firmware sharutils shorewall-ipv6 strace sysfsutils tmpwatch tree vim-minimal vnstat xdg-user-dirs-gtk sudo"
43
BASE_RPM_LIST="acpi acpid alsa-utils aoss arp-scan basesystem bash-completion coreutils-doc cpupower curl dhcp-client dmraid dnf dnf-plugins-core dosfstools dracut drakx-net-text gpm grub2 grub2-efi grub2-mageia-theme harddrake hdparm hexedit info iwlwifi-agn-ucode kernel-server-latest kernel-firmware kernel-firmware-nonfree ldetect lftp lib64alsa-plugins lib64glib-networking-gnutls locales-en locales-fr lsof lvm2 mageia-theme-Default man-db mandi-ifw man-pages microcode microcode_ctl mtools ntfs-3g numlock os-prober p11-kit perl-Hal-Cdroms plymouth procmail python3 python3-dbus radeon-firmware ralink-firmware rtlwifi-firmware sharutils shorewall-ipv6 strace sysfsutils tmpwatch tree vim-minimal vnstat xdg-user-dirs-gtk sudo socat"
44
 
44
 
45
#######################
45
#######################
46
###### Functions ######
46
###### Functions ######
47
################################################################################
47
################################################################################
48
# Print the given error message and exit 1
48
# Print the given error message and exit 1