On Thu, Apr 11, 2013 at 01:16:24PM -0000, Nicholas Schutt wrote: > > > if rootfstype is not None: > > > cmd += ' --rootfs ' + rootfstype > > > + if image_size is not None: > > > + cmd += ' --image-size ' + image_size > > > + if extra_boot_args is not None: > > > + cmd += ' --extra-boot-args "%s"' % extra_boot_args > > > logging.info("Executing the linaro-media-create command") > > > logging.info(cmd) > > > > > > @@ -85,7 +90,7 @@ > > > mntdir = mkdtemp() > > > image = image_file > > > offset = get_partition_offset(image, partno) > > > - mount_cmd = "sudo mount -o loop,offset=%s %s %s" % (offset, image, > > mntdir) > > > + mount_cmd = "mount -o loop,offset=%s %s %s" % (offset, image, mntdir) > > > rc = logging_system(mount_cmd) > > > if rc != 0: > > > os.rmdir(mntdir) > > > > We need lmc changes to get the snapshot image to work. Should this be > done on another branch? The existing snapshots won't work without > these changes.
if this is needed in order to make this branch work with the intended input data, so it's fine to keep them here.
-- Antonio Terceiro Software Engineer - Linaro http://www.linaro.org
« Back to merge proposal
On Thu, Apr 11, 2013 at 01:16:24PM -0000, Nicholas Schutt wrote: info("Executing the linaro-media-create command") offset( image, partno) system( mount_cmd)
> > > if rootfstype is not None:
> > > cmd += ' --rootfs ' + rootfstype
> > > + if image_size is not None:
> > > + cmd += ' --image-size ' + image_size
> > > + if extra_boot_args is not None:
> > > + cmd += ' --extra-boot-args "%s"' % extra_boot_args
> > > logging.
> > > logging.info(cmd)
> > >
> > > @@ -85,7 +90,7 @@
> > > mntdir = mkdtemp()
> > > image = image_file
> > > offset = get_partition_
> > > - mount_cmd = "sudo mount -o loop,offset=%s %s %s" % (offset, image,
> > mntdir)
> > > + mount_cmd = "mount -o loop,offset=%s %s %s" % (offset, image, mntdir)
> > > rc = logging_
> > > if rc != 0:
> > > os.rmdir(mntdir)
> >
>
> We need lmc changes to get the snapshot image to work. Should this be
> done on another branch? The existing snapshots won't work without
> these changes.
if this is needed in order to make this branch work with the intended
input data, so it's fine to keep them here.
-- www.linaro. org
Antonio Terceiro
Software Engineer - Linaro
http://