Ensure that grub-install doesn't receive emtpy command line argument
authorMichael Prokop <mika@grml.org>
Wed, 31 May 2017 09:20:26 +0000 (11:20 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 31 May 2017 09:25:28 +0000 (11:25 +0200)
commit6412ea248480b2f4a05914b815fb4c3d84582f0a
tree130c3ffb15364bf8e0025c240be22dccdc8295ea
parent9cbb2312cb49156f1daa60e1a9f91d0516dc68e3
Ensure that grub-install doesn't receive emtpy command line argument

We run grub-install once without --force and if that fails
try rerunning with --force. On the first run we pass an
empty argument though that grub-install assumes as install
device and fails with:

  /usr/sbin/grub-install: error: More than one install device?.

By using "--" as option to signify the end of command line
options we avoid this failure in the run without passing the
--force option.
grml2usb