menu.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:hardened-centos7-kickstart 作者: fcaviggia 项目源码 文件源码
def lvm_check(self,args):
        self.lvm = self.root_partition.get_value_as_int()+self.home_partition.get_value_as_int()+self.tmp_partition.get_value_as_int()+self.var_partition.get_value_as_int()+self.log_partition.get_value_as_int()+self.audit_partition.get_value_as_int()+self.swap_partition.get_value_as_int()+self.www_partition.get_value_as_int()+self.opt_partition.get_value_as_int()
        self.partition_used.set_label(str(self.lvm)+'%')
        if int(self.lvm) > 100:
            self.MessageBox(self.window,"<b>Verify that LVM configuration is not over 100%!</b>",gtk.MESSAGE_ERROR)
            return False
        else:
            return True


    # Display Message Box (e.g. Help Screen, Warning Screen, etc.)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号