Subversion Repositories ALCASAR

Rev

Rev 2947 | Rev 3114 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2947 Rev 2950
Line 38... Line 38...
38
    echo $1
38
    echo $1
39
    tput sgr0 2>/dev/null
39
    tput sgr0 2>/dev/null
40
}
40
}
41
 
41
 
42
ISO_IN=`ls $RESSOURCES | grep '^Mageia.*iso'`
42
ISO_IN=`ls $RESSOURCES | grep '^Mageia.*iso'`
-
 
43
FULL_PATH_ISO_IN=$CURRENT_DIR/ressources/$ISO_IN
43
MAGEIA_VERSION=`echo $ISO_IN|cut -d"-" -f2`
44
MAGEIA_VERSION=`echo $ISO_IN|cut -d"-" -f2`
44
ARCH=`echo $ISO_IN |cut -d"-" -f3|cut -d"." -f1`
45
ARCH=`echo $ISO_IN |cut -d"-" -f3|cut -d"." -f1`
45
ALCASAR_TARBALL=`ls $RESSOURCES| grep '^alcasar.*gz'`
46
ALCASAR_TARBALL=`ls $RESSOURCES| grep '^alcasar.*gz'`
46
ALCASAR_EXTRACTED_DIR=$(echo $ALCASAR_TARBALL | rev | cut -d '.' -f 3- | rev)
47
ALCASAR_EXTRACTED_DIR=$(echo $ALCASAR_TARBALL | rev | cut -d '.' -f 3- | rev)
47
ALCASAR_VERSION=`echo $ALCASAR_EXTRACTED_DIR | cut -d"-" -f2`
48
ALCASAR_VERSION=`echo $ALCASAR_EXTRACTED_DIR | cut -d"-" -f2`
Line 175... Line 176...
175
# Creating the new iso file
176
# Creating the new iso file
176
echo "Creating the isofile..."
177
echo "Creating the isofile..."
177
newIsoName=Mageia-$MAGEIA_VERSION-${ARCH}-Alcasar-$ALCASAR_VERSION.iso
178
newIsoName=Mageia-$MAGEIA_VERSION-${ARCH}-Alcasar-$ALCASAR_VERSION.iso
178
 
179
 
179
# Generating the iso file
180
# Generating the iso file
180
# Parameters for xorriso found using the following command on the original mageia iso
181
# Parameters for xorriso found using the following command on the Magiea iso file used in ressource folder
181
# xorriso -indev Mageia-7-x86_64.iso -report_el_torito as_mkisofs
182
# ex: xorriso -indev Mageia-7.1-x86_64.iso -report_el_torito as_mkisofs
182
cd ${MAGEIA_NEW_DIR} && xorriso -as mkisofs \
183
cd ${MAGEIA_NEW_DIR} && xorriso -as mkisofs \
183
	-V 'Mageia-7.1-x86_64' \
184
	-V 'Mageia-7.1-x86_64' \
-
 
185
	--grub2-mbr --interval:local_fs:0s-15s:zero_mbrpt:$FULL_PATH_ISO_IN \
184
	-partition_cyl_align off \
186
	-partition_cyl_align off \
185
	-partition_offset 0 \
187
	-partition_offset 0 \
186
	--mbr-force-bootable \
188
	--mbr-force-bootable \
-
 
189
	-append_partition 2 0xef --interval:local_fs:8785156d-8793347d::$FULL_PATH_ISO_IN \
187
	-iso_mbr_part_type 0x00 \
190
	-iso_mbr_part_type 0x00 \
188
	-c 'boot.catalog' \
191
	-c /boot.catalog \
189
	-b 'boot/grub2/eltorito.img' \
192
	-b /boot/grub2/eltorito.img \
190
	-no-emul-boot \
193
	-no-emul-boot \
191
	-boot-load-size 4 \
194
	-boot-load-size 4 \
192
	-boot-info-table \
195
	-boot-info-table \
193
	--grub2-boot-info \
196
	--grub2-boot-info \
194
	-eltorito-alt-boot \
197
	-eltorito-alt-boot \
-
 
198
	-e '--interval:appended_partition_2_start_2196289s_size_8192d:all::' \
-
 
199
	-no-emul-boot \
195
	-boot-load-size 8192 \
200
	-boot-load-size 8192 \
196
	-o ${TMP_DIR}/${newIsoName} .
201
	-o ${TMP_DIR}/${newIsoName} .
197
 
202
 
198
# Unmounting & Removing temporary dir
203
# Unmounting & Removing temporary dir
199
echo "Umounting..."
204
echo "Umounting..."