Properly exit if GRUB installation fails mika/grub-fail
authorMichael Prokop <mika@grml.org>
Wed, 21 Aug 2019 15:53:02 +0000 (17:53 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 21 Aug 2019 20:18:46 +0000 (22:18 +0200)
commit52c01f74a2f5c52d17cffdd6cddf042553f3eba0
treeabdf8244d27edab4cf7642e748f90788a505fd45
parent6839f3bd4fc3c5bdceee79a0c6bb694116f76809
Properly exit if GRUB installation fails

For example when partition table is GPT but grub installation
expects a MS-DOS partition table, then grub-install fails
but grml-debootstrap ignored this. Since the system isn't bootable
then this might go unnoticed, so properly fail as soon as grub-install
returns with exit code != 0.
chroot-script