1
0

suppression du fichier temporaire

Signed-off-by: Daniel Tartavel <dtux@free.fr>
This commit is contained in:
Daniel Tartavel 2022-11-04 15:32:34 +01:00
parent db3215d8d1
commit 787637cbed

View File

@ -56,9 +56,11 @@ if [ -n "$dossier" ] && [ -n "$boot" ];then
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 x86_64/media/core/release/drakiso-bootloader-files-1.17-1.mga8.x86_64.rpm | cpio --extract --make-directories
rsync -aP $tmpdir/usr/share/drakiso/bootloader/images/bootx64.efi 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 rpm2cpio i586/media/core/release/drakiso-bootloader-files-1.17-1.mga8.i586.rpm | cpio --extract --make-directories
rsync -aP $tmpdir/usr/share/drakiso/bootloader/images/bootia32.efi rsync -aP ./usr/share/drakiso/bootloader/images/bootia32.efi
popd
rm -Rf $tmp_dir
done done
else else
echo "il manque un dossier (boot ou miroir) voir plus haut" echo "il manque un dossier (boot ou miroir) voir plus haut"