From c30cb7d5df2a5fae96f59e6750ba38bcc12b2958 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 2 Oct 2023 23:15:44 +0200 Subject: [PATCH] v8.23 - DietPi-Drive_Manager | Error-handle some more commands, which also helps to see which commands were actually executed by the script --- dietpi/dietpi-drive_manager | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dietpi/dietpi-drive_manager b/dietpi/dietpi-drive_manager index 28f33ad097..f310f5e1df 100755 --- a/dietpi/dietpi-drive_manager +++ b/dietpi/dietpi-drive_manager @@ -598,8 +598,8 @@ Do you wish to ignore this warning, and, mount the drive regardless?" || return G_DIETPI-NOTIFY 2 "Creating new $partition_table_type partition table" G_EXEC parted -s "/dev/${aDRIVE_SOURCE_DEVICE[$MENU_DRIVE_INDEX]}" mklabel "$partition_table_type" G_EXEC parted -s "/dev/${aDRIVE_SOURCE_DEVICE[$MENU_DRIVE_INDEX]}" mkpart primary 0% 100% - partprobe "/dev/${aDRIVE_SOURCE_DEVICE[$MENU_DRIVE_INDEX]}" - partx -u "/dev/${aDRIVE_SOURCE_DEVICE[$MENU_DRIVE_INDEX]}" + G_EXEC partprobe "/dev/${aDRIVE_SOURCE_DEVICE[$MENU_DRIVE_INDEX]}" + G_EXEC partx -u "/dev/${aDRIVE_SOURCE_DEVICE[$MENU_DRIVE_INDEX]}" # Generate new aDRIVE_MOUNT_SOURCE location to use # - hda1/sda1/vda1 @@ -619,7 +619,7 @@ Do you wish to ignore this warning, and, mount the drive regardless?" || return # force info_format_fs_type='ext4' G_EXEC mkfs.ext4 -F -m 0 "${aDRIVE_MOUNT_SOURCE[$MENU_DRIVE_INDEX]}" - resize2fs "${aDRIVE_MOUNT_SOURCE[$MENU_DRIVE_INDEX]}" + G_EXEC resize2fs "${aDRIVE_MOUNT_SOURCE[$MENU_DRIVE_INDEX]}" # Format NTFS elif (( $FORMAT_FILESYSTEM_TYPE == 1 )); then @@ -751,8 +751,8 @@ Do you wish to ignore this warning, and, mount the drive regardless?" || return [[ $rootfstype_current ]] && G_EXEC sed -i "s#$rootfstype_current#rootfstype=${aDRIVE_FSTYPE[$MENU_DRIVE_INDEX]}#g" /boot/boot.ini fi - systemctl daemon-reload - sync + G_EXEC systemctl daemon-reload + G_EXEC sync G_WHIP_MSG 'RootFS transfer has successfully completed.\n\nA reboot is required, please press to reboot now.' reboot