Did I find the right examples for you? yes no

All Samples(127)  |  Call(127)  |  Derive(0)  |  Import(0)

src/m/i/mic-HEAD/mic/utils/partitionedfs.py   mic(Download)
    def __create_part_to_image(self, device, parttype, fstype, start, size):
        # Start is included to the size so we need to substract one from the end.
        end = start+size-1
        msger.debug("Added '%s' part at Sector %d with size %d sectors" %
                    (parttype, start, end))
        part_cmd.extend(["%d" % start, "%d" % end])
 
        msger.debug(part_cmd)
        rc, out = runner.runtool(part_cmd, catch=3)
        out = out.strip()
        if out:
            msger.debug('"parted" output: %s' % out)
    def __format_disks(self):
        msger.debug("Assigning partitions to disks")
 
        mbr_sector_skipped = False
 
            if align_sectors:
                if p['align'] and p['align'] > 0:
                    msger.debug("Realignment for %s%s with %s sectors, original"
                                " offset %s, target alignment is %sK." %
                                (p['disk'], d['numpart'], align_sectors,

src/o/e/oe-core-HEAD/scripts/lib/mic/plugins/backend/yumpkgmgr.py   oe-core(Download)
            if len(deps) != 0:
                # This isn't fatal, Ubuntu has this issue but it is ok.
                msger.debug(deps)
                msger.warning("Dependency check failed!")
 

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/fs_related.py   oe-core(Download)
    def cleanup(self):
        if self.device is None:
            return
        msger.debug("Losetup remove %s" % self.device)
        rc = runner.show([self.losetupcmd, "-d", self.device])
            size = self.size
 
        msger.debug("Extending sparse file %s to %d" % (self.lofile, size))
        if create:
            fd = os.open(self.lofile, flags, 0644)
    def truncate(self, size = None):
        if size is None:
            size = self.size
 
        msger.debug("Truncating sparse file %s to %d" % (self.lofile, size))
    def unmount(self):
        if self.mounted:
            msger.debug("Unmounting directory %s" % self.mountdir)
            runner.quiet('sync') # sync the data on this mount point
            rc = runner.show([self.umountcmd, "-l", self.mountdir])
 
        if not os.path.isdir(self.mountdir):
            msger.debug("Creating mount point %s" % self.mountdir)
            os.makedirs(self.mountdir)
            self.rmdir = self.rmmountdir

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/partitionedfs.py   oe-core(Download)
        partition table format, and may be either "msdos" or "gpt". """
 
        msger.debug("Assigning %s partitions to disks" % ptable_format)
 
        if ptable_format not in ('msdos', 'gpt'):
                align_sectors = (p['align'] * 1024 / self.sector_size) - align_sectors
 
                msger.debug("Realignment for %s%s with %s sectors, original"
                            " offset %s, target alignment is %sK." %
                            (p['disk_name'], d['numpart'], align_sectors,
 
            d['partitions'].append(n)
            msger.debug("Assigned %s to %s%d, sectors range %d-%d size %d "
                        "sectors (%d bytes)." \
                            % (p['mountpoint'], p['disk_name'], p['num'],
    def __run_parted(self, args):
        """ Run parted with arguments specified in the 'args' list. """
 
        args.insert(0, self.parted)
        msger.debug(args)
 
        rc, out = runner.runtool(args, catch = 3)
        out = out.strip()
        if out:
            msger.debug('"parted" output: %s' % out)

src/m/i/mic-HEAD/mic/utils/fs_related.py   mic(Download)
    def cleanup(self):
        if self.device is None:
            return
        msger.debug("Losetup remove %s" % self.device)
        rc = runner.show([self.losetupcmd, "-d", self.device])
            size = self.size
 
        msger.debug("Extending sparse file %s to %d" % (self.lofile, size))
        if create:
            fd = os.open(self.lofile, flags, 0644)
    def truncate(self, size = None):
        if size is None:
            size = self.size
 
        msger.debug("Truncating sparse file %s to %d" % (self.lofile, size))
    def unmount(self):
        if self.mounted:
            msger.debug("Unmounting directory %s" % self.mountdir)
            runner.quiet('sync') # sync the data on this mount point
            rc = runner.show([self.umountcmd, "-l", self.mountdir])
 
        if not os.path.isdir(self.mountdir):
            msger.debug("Creating mount point %s" % self.mountdir)
            os.makedirs(self.mountdir)
            self.rmdir = self.rmmountdir

src/m/i/mic-HEAD/plugins/backend/yumpkgmgr.py   mic(Download)
            if len(deps) != 0:
                # This isn't fatal, Ubuntu has this issue but it is ok.
                msger.debug(deps)
                msger.warning("Dependency check failed!")
 

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/oe/misc.py   oe-core(Download)
    Need to execute as_shell if the command uses wildcards
    """
    msger.debug("exec_cmd: %s" % cmd_and_args)
    args = cmd_and_args.split()
    msger.debug(args)
        rc, out = runner.runtool(args, catch)
    out = out.strip()
    msger.debug("exec_cmd: output for %s (rc = %d): %s" % \
                    (cmd_and_args, rc, out))
 
        (native_sysroot, native_sysroot, native_sysroot)
    native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
    msger.debug("exec_native_cmd: %s" % cmd_and_args)
 
    args = cmd_and_args.split()
    msger.debug(args)

src/o/e/oe-core-HEAD/scripts/lib/mic/utils/misc.py   oe-core(Download)
    os.close(fd)
 
    msger.debug('normalized ks file:%s' % ksconf)
 
    def remove_temp_ks():
def convert_image(srcimg, srcfmt, dstimg, dstfmt):
    #convert disk format
    if dstfmt != "raw":
        raise CreatorError("Invalid destination image format: %s" % dstfmt)
    msger.debug("converting %s image to %s" % (srcimg, dstimg))
    rc = runner.show(argv)
    if rc == 0:
        msger.debug("convert successful")
    if rc != 0:
        raise CreatorError("Unable to convert disk to %s" % dstfmt)
        except CreatorError:
            repokey = None
            msger.debug("\ncan't get %s/%s" % (baseurl, "repodata/repomd.xml.key"))
 
        my_repo_metadata.append({"name":reponame,

src/o/e/oe-core-HEAD/scripts/lib/mic/imager/raw.py   oe-core(Download)
        mkinitrd += "rootopts=\"defaults\"\n"
 
        msger.debug("Writing mkinitrd config %s/etc/sysconfig/mkinitrd" \
                    % self._instroot)
        os.makedirs(self._instroot + "/etc/sysconfig/",mode=644)
        for disk_name, disk in self.__instloop.disks.items():
            full_path = self._full_path(self.__imgdir, disk_name, "raw")
            msger.debug("Adding disk %s as %s with size %s bytes" \
                        % (disk_name, full_path, disk['min_size']))
 
                footlabel += 1;
 
        msger.debug("Writing syslinux config %s/boot/extlinux/extlinux.conf" \
                    % self._instroot)
        cfg = open(self._instroot + "/boot/extlinux/extlinux.conf", "w")
                mbrfile += "mbr.bin"
 
            msger.debug("Installing syslinux bootloader '%s' to %s" % \
                        (mbrfile, loopdev))
 
            misc.packing(dst, self.__imgdir)
        else:
            msger.debug("moving disks to stage location")
            for imgfile in os.listdir(self.__imgdir):
                src = os.path.join(self.__imgdir, imgfile)

src/m/i/mic-HEAD/mic/bootstrap.py   mic(Download)
 
        name, mver = query_package(self.rootdir, 'name', 'meego-release')
        msger.debug("MeeGo Release: %s" % mver)
 
        name, kver = query_package(self.rootdir, 'name', 'kernel')
        msger.debug("Kernel Version: %s" % kver)
 
        name, rver = query_package(self.rootdir, 'name', 'rpm')
        msger.debug("RPM Version: %s" % rver)

  1 | 2 | 3  Next