]> spindle.queued.net Git - xodist/commitdiff
mkext3: run grub w/ --batch so it doesn't whine about lack of TERM
authorAndres Salomon <dilinger@collabora.co.uk>
Fri, 12 Jun 2009 17:23:45 +0000 (13:23 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Fri, 12 Jun 2009 17:23:45 +0000 (13:23 -0400)
..in case we happen to be running this script from a crontab.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
mkext3.sh

index 8d8532477cf0b5a09ec512b9f9e3f45bcafb398a..4bddac3a7b8b2fd54aad3bf0d5f0789c33353d7a 100755 (executable)
--- a/mkext3.sh
+++ b/mkext3.sh
@@ -128,7 +128,7 @@ EOF
 
        # grub-install is pretty broken, so we do this manually
        geom=`parted -s "$img" "unit chs" "print" | sed -ne 's/geometry: \([0-9]\+\),\([0-9]\+\),\([0-9]\+\)/:\1 \2 \3:/p' | cut -d: -f2`
-       grub --device-map=/dev/null <<EOF
+       grub --batch --device-map=/dev/null <<EOF
 device (hd0) $img
 geometry (hd0) $geom
 root (hd0,0)