Date: Monday, February 13, 2017 @ 02:48:08 Author: anatolik Revision: 288769
Make error message cleaner for non-partitioned disks syslinux requires partition table is we want to install MBR or active bit. Make the error message cleaner. Inspired by https://bbs.archlinux.org/viewtopic.php?id=223038 Modified: syslinux/trunk/syslinux-install_update -------------------------+ syslinux-install_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Modified: syslinux-install_update =================================================================== --- syslinux-install_update 2017-02-12 21:34:51 UTC (rev 288768) +++ syslinux-install_update 2017-02-13 02:48:08 UTC (rev 288769) @@ -233,7 +233,7 @@ # If any bootdev is a block device without partitions bail # we want to set the boot flag on partitioned disk for dev in "${!bootdevs[@]}"; do - dev_is_part $dev || { echo "$dev - is a block device. Aborting set_active!"; return 1; } + dev_is_part $dev || { echo "$dev does not contain partition table. Aborting set_active!"; return 1; } done # Clear BIOS Bootable Legacy Attribute for GPT drives @@ -281,7 +281,7 @@ # If any bootdev is a block device without partitions bail # we want to install the mbr to a partitioned disk for dev in "${!bootdevs[@]}"; do - dev_is_part "$dev" || { echo "$dev - is a block device. Aborting MBR install"; return 1; } + dev_is_part "$dev" || { echo "$dev does not contain partition table. Aborting MBR install."; return 1; } done for part in "${!bootdevs[@]}"; do
