refactor(script): Log steps

This commit is contained in:
hygienic-books 2023-10-26 03:24:07 +02:00
parent ad85e5b2d2
commit 2374bbb97e

View File

@ -26,7 +26,7 @@ else
boot_disk='/dev/'"${boot_disk}" boot_disk='/dev/'"${boot_disk}"
fi fi
find "${boot_dir}" -type f -iname '*.c32' -delete 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}"'/' rsync -a '/usr/lib/syslinux/bios/'*'.c32' "${boot_dir}"'/' && echo 'Put new COMBOOT files onto boot drive'
extlinux --install "${boot_dir}" 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}" 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'