1,7 → 1,7 |
#!/bin/bash |
# |
# Authors: Mageia Team |
# Update for ALCASAR : Hamza ESSAYEGH (Querdos) - Rexy - Laurent Roux - Aurelien Dubois |
# Update for ALCASAR : Hamza ESSAYEGH (Querdos) - Rexy - Laurent Roux - Aurelien Dubois - Pierre Rivault |
## |
# Usage: $0 ARGS |
# --iso-file, -i Mageia-xxx-xxxxxx-xxx.iso (mandatory) |
20,6 → 20,7 |
ARCH=`cat /etc/release|cut -d" " -f6` |
MAGEIA_NEW_DIR=/tmp/mageia_new |
MAGEIA_OFFICIAL_DIR=/tmp/mageia_official |
MAGEIA_OFFICIAL_DIR_EFI=/tmp/mageia_official_efi |
# ISO file |
ISO_DIR="/var/iso" |
ISO_IN="$ISO_DIR/Mageia-$MAGEIA_VERSION-$ARCH.iso" |
228,19 → 229,29 |
echo "Creating the isofile..." |
alcasarVersion=$(echo $ALCASAR_TAR | cut -d '-' -f2 | rev | cut -d '.' -f 3- | rev ) |
newIsoName=Mageia-$MAGEIA_VERSION-${ARCH}-Alcasar${alcasarVersion}.iso |
#cd ${MAGEIA_NEW_DIR} && genisoimage -quiet -o ${CURRENT_DIR}/${newIsoName} \ |
# -b isolinux/isolinux.bin \ |
# -c boot.catalog \ |
# -no-emul-boot -boot-load-size 4 \ |
# -boot-info-table -J -R -V "Mageia-$MAGEIA_VERSION Alcasar ${ARCH}" . |
|
cd ${MAGEIA_NEW_DIR} && xorriso -as mkisofs -quiet -o ${CURRENT_DIR}/${newIsoName} \ |
-isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin \ |
-isohybrid-gpt-basdat \ |
-b /boot/grub2/eltorito.img \ |
-c boot.catalog \ |
-no-emul-boot -boot-load-size 4 \ |
-boot-info-table -J -R -V "Mageia-$MAGEIA_VERSION Alcasar ${ARCH}" . |
# Generating the iso file |
# Parameters for xorriso found using the following command on the original mageia iso |
# xorriso -indev Mageia-7-x86_64.iso -report_el_torito as_mkisofs |
cd ${MAGEIA_NEW_DIR} && xorriso -as mkisofs \ |
-V 'Mageia-7.1-x86_64' \ |
--grub2-mbr --interval:local_fs:0s-15s:zero_mbrpt:${ISO_IN} \ |
-partition_cyl_align off \ |
-partition_offset 0 \ |
--mbr-force-bootable \ |
-append_partition 2 0xef --interval:local_fs:8785156d-8793347d::${ISO_IN} \ |
-iso_mbr_part_type 0x00 \ |
-c '/boot.catalog' \ |
-b '/boot/grub2/eltorito.img' \ |
-no-emul-boot \ |
-boot-load-size 4 \ |
-boot-info-table \ |
--grub2-boot-info \ |
-eltorito-alt-boot \ |
-e '--interval:appended_partition_2_start_2196289s_size_8192d:all::' \ |
-no-emul-boot \ |
-boot-load-size 8192 \ |
-o ${CURRENT_DIR}/${newIsoName} . |
|
|
# Unmounting |