1
0
This commit is contained in:
Daniel Tartavel 2022-12-05 12:32:10 +01:00
parent 787637cbed
commit 94947abd74

View File

@ -48,17 +48,18 @@ if [ -n "$dossier" ] && [ -n "$boot" ];then
# Copie des fichiers de boot CSM # Copie des fichiers de boot CSM
cd "$dossier/$version" cd "$dossier/$version"
rsync -aP i586/isolinux/i386/vmlinuz "$boot/vmlinuz_$version_i586" rsync -aP i586/isolinux/i386/vmlinuz "$boot"/isolinux/i386/vmlinuz_$version
rsync -aP x86_64/isolinux/x86_64/vmlinuz "$boot/isolinux/x86_64/vmlinuz_$version" rsync -aP x86_64/isolinux/x86_64/vmlinuz "$boot/isolinux/x86_64/vmlinuz_$version"
rsync -aP i586/isolinux/i386/all.rdz "$boot/all_$version_i586.rdz" rsync -aP i586/isolinux/i386/all.rdz "$boot"/isolinux/i386/all_$version".rdz"
rsync -aP x86_64/isolinux/x86_64/all.rdz "$boot/isolinux/x86_64/all_$version.rdz" rsync -aP x86_64/isolinux/x86_64/all.rdz "$boot/isolinux/x86_64/all_"$version".rdz"
# Copie des fichers de boot EFI # Copie des fichers de boot EFI
tmp_dir=$(mktemp -d -t mirror_mageia_hd-XXXXXXXXXX) tmp_dir=$(mktemp -d -t mirror_mageia_hd-XXXXXXXXXX)
pushd $tmp_dir pushd $tmp_dir
rpm2cpio x86_64/media/core/release/drakiso-bootloader-files-1.17-1.mga8.x86_64.rpm | cpio --extract --make-directories rpm2cpio "$dossier/$version"/x86_64/media/core/release/drakiso-bootloader-files-1.17-1.mga8.x86_64.rpm | cpio --extract --make-directories
rsync -aP ./usr/share/drakiso/bootloader/images/bootx64.efi rsync -aP ./usr/share/drakiso/bootloader/images/bootx64.efi "$boot"/EFI/BOOT/
rpm2cpio i586/media/core/release/drakiso-bootloader-files-1.17-1.mga8.i586.rpm | cpio --extract --make-directories rm -Rf $tmp_dir/*
rsync -aP ./usr/share/drakiso/bootloader/images/bootia32.efi rpm2cpio "$dossier/$version"/i586/media/core/release/drakiso-bootloader-files-1.17-1.mga8.i586.rpm | cpio --extract --make-directories
rsync -aP ./usr/share/drakiso/bootloader/images/bootia32.efi "$boot"/EFI/BOOT/
popd popd
rm -Rf $tmp_dir rm -Rf $tmp_dir
done done