From 5c63e9b0498324863d7868d2cebfd0e6a526f187 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Fri, 3 Mar 2017 11:24:19 +0100 Subject: [PATCH] prepare for merge. resolve some conflicts --- data/translations/french.trans | 8 ++++---- lib/util-base.sh | 1 + lib/util-disk.sh | 2 +- lib/util.sh | 7 +++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data/translations/french.trans b/data/translations/french.trans index 0a33bfc..90d2048 100644 --- a/data/translations/french.trans +++ b/data/translations/french.trans @@ -192,7 +192,7 @@ _NUsrErrBody="\nNom d'utilisateur incorrect. Veuillez réessayer.\n\n" # Définir l'utilisateur _PassNUsrBody="\nEntrer le mot de passe pour" _NUsrSetBody="\nCréation de l'utilisateur et paramétrage des groupes...\n\n" -_DefShell="Choose the default." # translate me ! +_DefShell="Choisir celui par défaut." # Montage (Partitions) _MntStatusTitle="État de montage" @@ -240,7 +240,7 @@ _FormUefiBody="La partition UEFI" _FormUefiBody2="a déjà été formatée.\n\nLa reformater ? Ceci effacera TOUTES les données déjà présentes sur la partition.\n\n" # Point de montage UEFI -_MntUefiBody="\nSelect UEFI Mountpoint.\n" # translate me ! +_MntUefiBody="\nSelectionner le point de montage UEFI.\n" # Partitions supplémentaires _ExtPartBody="\nSélectionner des partitions additionnelles dans n'importe quel ordre, ou cliquer sur « Terminé » afin de poursuivre." @@ -268,7 +268,7 @@ _InstSysBody="\nInstaller syslinux dans le Master Boot Record (MBR) ou à la rac # Installer le chargeur d'amorçage UEFI _InstUefiBtTitle="Installer le chargeur d'amorçage UEFI" -_InstUefiBtBody="Install UEFI Bootloader GRUB." # translate me ! +_InstUefiBtBody="Installer le chargeur Grub en UEFI." _SetBootDefBody="\nCertains microcodes UEFI peuvent ne pas détecter le chargeur d'amorçage, à moins de le définir par défaut en copiant son module efi dans" _SetBootDefBody2="et le renommer bootx64.efi.\n\nIl est recommandé de le faire à moins que vous utilisiez déjà un chargeur d'amorçage par défaut, ou si vous avez l'intention d'utiliser plusieurs chargeurs d'amorçage.\n\nDéfinir le chargeur d'amorçage par défaut ?\n\n" @@ -402,4 +402,4 @@ _MMBody="\nChaque étape doit être suivie DANS L'ORDRE. Les étapes 4-8 sont to # Fermer l'installateur _CloseInstBody="Fermer l'installateur ?" -_LogInfo="Would you like to copy the installation-log to the installed system?\nIt will be copied to" # translate me ! +_LogInfo="Désirez-vous copier le journal d'installation sur le système installé ?\nIl sera copié dans" diff --git a/lib/util-base.sh b/lib/util-base.sh index 34ea36a..cca0dca 100644 --- a/lib/util-base.sh +++ b/lib/util-base.sh @@ -694,6 +694,7 @@ setup_graphics_card() { clear arch_chroot "mhwd -f -i pci $(cat /tmp/.driver)" 2>$ERR + check_for_error "install $(cat /tmp/.driver)" $? GRAPHIC_CARD=$(lspci | grep -i "vga" | sed 's/.*://' | sed 's/(.*//' | sed 's/^[ \t]*//') diff --git a/lib/util-disk.sh b/lib/util-disk.sh index 07cdc19..97c99f5 100644 --- a/lib/util-disk.sh +++ b/lib/util-disk.sh @@ -6,7 +6,7 @@ umount_partitions() { for i in ${MOUNTED[@]}; do umount $i >/dev/null 2>$ERR - check_for_error $FUNCNAME $? + check_for_error "unmount $i" $? # local err=$(umount $i >/dev/null 2>$ERR) # (( err !=0 )) && check_for_error "$FUNCNAME $i" $err done diff --git a/lib/util.sh b/lib/util.sh index 94ad5c1..d776985 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -431,11 +431,10 @@ exit_done() { final_check dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "$_CloseInstBody $(cat ${CHECKLIST})" 0 0 if [[ $? -eq 0 ]]; then - echo "exit installer." >> ${LOGFILE} - dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "\n$_LogInfo\n" 0 0 + check_for_error "exit installer." + dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "\n$_LogInfo ${TARGLOG}.\n" 0 0 if [[ $? -eq 0 ]]; then - [[ -e /mnt/.m-a.log ]] && cat ${LOGFILE} >> /mnt/.m-a.log - cp ${LOGFILE} /mnt/.m-a.log + [[ -e ${TARGLOG} ]] && cat ${LOGFILE} >> ${TARGLOG} || cp ${LOGFILE} ${TARGLOG} fi umount_partitions clear