Subversion Repositories ALCASAR

Rev

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

Rev 3190 Rev 3261
Line 3... Line 3...
3
# Build Mageiar (Mageia + ALCASAR) ISO file
3
# Build Mageiar (Mageia + ALCASAR) ISO file
4
# Authors: Hamza ESSAYEGH (Querdos) - Rexy - Laurent Roux - Aurelien Dubois - Pierre Rivault
4
# Authors: Hamza ESSAYEGH (Querdos) - Rexy - Laurent Roux - Aurelien Dubois - Pierre Rivault
5
#
5
#
6
####################################
6
####################################
7
###### Variables & functions  ######
7
###### Variables & functions  ######
8
################################################################################
8
####################################
9
 
9
 
10
CURRENT_DIR="$(readlink -f "$(dirname $0)")"
10
CURRENT_DIR="$(readlink -f "$(dirname $0)")"
11
LOG_FILE="$CURRENT_DIR/build-image.log"
11
LOG_FILE="$CURRENT_DIR/build-image.log"
12
RESSOURCES="$CURRENT_DIR/ressources"
12
RESSOURCES="$CURRENT_DIR/ressources"
13
 
13
 
Line 64... Line 64...
64
 
64
 
65
# RPMs needed during an install stage
65
# RPMs needed during an install stage
66
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 ldetect lftp lib64alsa-plugins lib64glib-networking-gnutls locales-en locales-fr lsof lvm2 mageia-theme-Default man-db 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 mandi mandi-ifw"
66
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 ldetect lftp lib64alsa-plugins lib64glib-networking-gnutls locales-en locales-fr lsof lvm2 mageia-theme-Default man-db 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 mandi mandi-ifw"
67
ISO_RPM_LIST="cdrkit-genisoimage xorriso rpmtools syslinux"
67
ISO_RPM_LIST="cdrkit-genisoimage xorriso rpmtools syslinux"
68
 
68
 
69
#######################
69
########################
70
######    Main    ######
70
######    Main    ######
71
################################################################################
71
########################
72
 
72
 
73
# Some checks
73
# Some checks
74
[[ $(whoami) != 'root' ]] && errorExit 'Please run as root'
74
[[ $(whoami) != 'root' ]] && errorExit 'Please run as root'
75
[[ $ISO_IN == "" ]] && errorExit "No Mageia iso file in $RESSOURCES"
75
[[ $ISO_IN == "" ]] && errorExit "No Mageia iso file in $RESSOURCES"
76
[[ ! -f "$RESSOURCES/auto_inst.cfg.pl_template" ]] && errorExit "No auto_inst.cfg.pl_template file in $RESSOURCES"
76
[[ ! -f "$RESSOURCES/auto_inst.cfg.pl_template" ]] && errorExit "No auto_inst.cfg.pl_template file in $RESSOURCES"
Line 185... Line 185...
185
	-V $newName \
185
	-V $newName \
186
	--grub2-mbr --interval:local_fs:0s-15s:zero_mbrpt:$FULL_PATH_ISO_IN \
186
	--grub2-mbr --interval:local_fs:0s-15s:zero_mbrpt:$FULL_PATH_ISO_IN \
187
	-partition_cyl_align off \
187
	-partition_cyl_align off \
188
	-partition_offset 0 \
188
	-partition_offset 0 \
189
	--mbr-force-bootable \
189
	--mbr-force-bootable \
190
	-append_partition 2 0xef --interval:local_fs:8778748d-8786939d::$FULL_PATH_ISO_IN \
190
	-append_partition 2 0xef --interval:local_fs:8820924d-8829115d::$FULL_PATH_ISO_IN \
191
	-iso_mbr_part_type 0x00 \
191
	-iso_mbr_part_type 0x00 \
192
	-c /boot.catalog \
192
	-c /boot.catalog \
193
	-b /boot/grub2/eltorito.img \
193
	-b /boot/grub2/eltorito.img \
194
	-no-emul-boot \
194
	-no-emul-boot \
195
	-boot-load-size 4 \
195
	-boot-load-size 4 \
196
	-boot-info-table \
196
	-boot-info-table \
197
	--grub2-boot-info \
197
	--grub2-boot-info \
198
	-eltorito-alt-boot \
198
	-eltorito-alt-boot \
199
	-e '--interval:appended_partition_2_start_2194687s_size_8192d:all::' \
199
	-e '--interval:appended_partition_2_start_2205231s_size_8192d:all::' \
200
	-no-emul-boot \
200
	-no-emul-boot \
201
	-boot-load-size 8192 \
201
	-boot-load-size 8192 \
202
	-o ${TMP_DIR}/${newIsoName} .
202
	-o ${TMP_DIR}/${newIsoName} .
203
 
203
 
204
# Unmounting & Removing temporary dir
204
# Unmounting & Removing temporary dir