Bug#239066: mkbimage: syntax error calling losetup

Yann Dirson Yann Dirson <dirson@debian.org>, 239066@bugs.debian.org
Sat, 20 Mar 2004 18:35:12 +0100


Package: grub
Version: 0.93+cvs20031021-8
Severity: normal
Tags: patch

$offset must contain an integer, but at some point gets assigned "-o <realvalue>"
resulting in calling "losetup -o -o <realvalue>", which fails.

--- /bin/mkbimage       2003-08-09 14:19:43.000000000 +0200
+++ mkbimage    2004-03-20 18:21:01.000000000 +0100
@@ -345,7 +345,7 @@
 
 
 EOT
-  offset="-o $(($sectors * $block_size))" 
+  offset="$(($sectors * $block_size))" 
   type_option=
 else
   offset="0"

-- 
Yann Dirson    <ydirson@altern.org> |    Why make M$-Bill richer & richer ?
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
Pro:    <yann.dirson@fr.alcove.com> |  Freedom, Power, Stability, Gratuity
     http://ydirson.free.fr/        | Check <http://www.debian.org/>