diff --git a/pacman-zbm-syslinux-regen.sh b/pacman-zbm-syslinux-regen.sh index 0b91447..0c95df8 100644 --- a/pacman-zbm-syslinux-regen.sh +++ b/pacman-zbm-syslinux-regen.sh @@ -26,7 +26,7 @@ else boot_disk='/dev/'"${boot_disk}" fi -find "${boot_dir}" -type f -iname '*.c32' -delete -rsync -a '/usr/lib/syslinux/bios/'*'.c32' "${boot_dir}"'/' -extlinux --install "${boot_dir}" -dd bs=440 count=1 conv=notrunc if='/usr/lib/syslinux/bios/mbr.bin' of="${boot_disk}" +find "${boot_dir}" -type f -iname '*.c32' -delete && echo 'Delete old COMBOOT files from boot drive' +rsync -a '/usr/lib/syslinux/bios/'*'.c32' "${boot_dir}"'/' && echo 'Put new COMBOOT files onto boot drive' +extlinux --install "${boot_dir}" &>/dev/null && echo 'Install new extlinux boot loader' +dd bs=440 count=1 conv=notrunc if='/usr/lib/syslinux/bios/mbr.bin' of="${boot_disk}" 2>/dev/null && echo 'Overwrite MBR with newest version'