From 94947abd74f24eeaec417da1cfae22f3a3738a48 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 5 Dec 2022 12:32:10 +0100 Subject: [PATCH] update --- mirror_mageia_hd | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mirror_mageia_hd b/mirror_mageia_hd index 371f4f3..72d5b6c 100755 --- a/mirror_mageia_hd +++ b/mirror_mageia_hd @@ -48,17 +48,18 @@ if [ -n "$dossier" ] && [ -n "$boot" ];then # Copie des fichiers de boot CSM 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 i586/isolinux/i386/all.rdz "$boot/all_$version_i586.rdz" - rsync -aP x86_64/isolinux/x86_64/all.rdz "$boot/isolinux/x86_64/all_$version.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" # Copie des fichers de boot EFI tmp_dir=$(mktemp -d -t mirror_mageia_hd-XXXXXXXXXX) pushd $tmp_dir - rpm2cpio 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 - rpm2cpio 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 + 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 "$boot"/EFI/BOOT/ + rm -Rf $tmp_dir/* + 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 rm -Rf $tmp_dir done