This email list is read-only.  Emails sent to this list will be discarded
----------------------------------
 debian/changelog     |    5 ++++-
 libs/InstallImage.py |    6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 7a2dbbb771ae5369013ee6ff0c82b49054a51b0b
Author: Prajwal Mohan <[EMAIL PROTECTED]>
Date:   Fri Aug 1 11:13:47 2008 -0700

    Fixing bug in applying hd_kernel_cmd_line


Diff in this email is a maximum of 400 lines.
diff --git a/debian/changelog b/debian/changelog
index ebacad4..c16bf8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -89,7 +89,10 @@ moblin-image-creator (0.45) UNRELEASED; urgency=low
   [ Mitsutaka Amano ]
   * Added package reaquire.
 
- -- Mitsutaka Amano <[EMAIL PROTECTED]>  Thu, 31 Jul 2008 11:32:21 +0900
+  [ Prajwal Mohan ]
+  * Fixing bug in applying hd_kernel_cmd_line 
+
+ -- Prajwal Mohan <[EMAIL PROTECTED]>  Fri, 01 Aug 2008 11:13:19 -0700
 
 moblin-image-creator (0.44) gaston; urgency=low
 
diff --git a/libs/InstallImage.py b/libs/InstallImage.py
index 4820b05..e5c7a0c 100755
--- a/libs/InstallImage.py
+++ b/libs/InstallImage.py
@@ -412,8 +412,10 @@ class InstallImage(object):
         #execCommand does not seem to work. This command needs the 
hd_kernel_cmdline to be within double quotes
         #execComamnd uses split. This causes only the first part of 
hd_kernel_cmdline to get picked up
         #self.target.chroot("update-grub %s" % hd_kernel_cmdline)
-        cmd_line = "/sbin/update-grub \"%s\"" % hd_kernel_cmdline
-        os.popen("/usr/sbin/chroot %s %s" % (self.target.path, cmd_line))
+        self.target.chroot("update-grub boot=disk")
+        hd_kernel_cmdline = hd_kernel_cmdline.replace('/', '\/')
+        cmd="sed \'s/boot=disk/%s/\' -i /boot/grub/grub.conf" % 
hd_kernel_cmdline
+        os.popen("/usr/sbin/chroot %s %s" % (self.target.path, cmd))
 
     def __str__(self):
         return ("<InstallImage: project=%s, target=%s, name=%s>"
_______________________________________________
Commits mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/commits

Reply via email to