def METHOD_NAME(self, osmajor_id=None, installopts=None):
    try:
        osmajor = OSMajor.by_id(osmajor_id)
    except InvalidRequestError:
        flash(_(u"Invalid OSMajor ID %s" % id))
        redirect(".")
    for arch, options in installopts.iteritems():
        # arch=None means applied to all arches
        io = OSMajorInstallOptions.lazy_create(osmajor_id=osmajor.id,
                arch_id=Arch.by_name(arch).id if arch else None)
        io.ks_meta = options['ks_meta']
        io.kernel_options = options['kernel_options']
        io.kernel_options_post = options['kernel_options_post']
    flash(_(u'Install options saved for %s') % osmajor)
    redirect('.')