'Simply hardlinks directories that are cobbler managed.
This is a /very/ simple command but may grow more complex
and intelligent over time.'

def run(self):

    if (not os.path.exists(self.hardlink)):
        utils.die(self.logger, ("please    install    'hardlink'    (%s)    to    use    this    feature" % self.hardlink))
    self.logger.info('now    hardlinking    to    save    space,    this    may    take    some    time.')
    rc = utils.subprocess_call(self.logger, self.hardlink_cmd, shell=True)
    webdir = '/var/www/cobbler'
    if os.path.exists('/srv/www'):
        webdir = '/srv/www/cobbler'
    rc = utils.subprocess_call(self.logger, (('/usr/sbin/hardlink    -c    -v    ' + webdir) + '/distro_mirror    /var/www/cobbler/repo_mirror'), shell=True)
    return rc
