You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-utils-3-install/install/variables/disk.py

149 lines
4.0 KiB

#-*- coding: utf-8 -*-
# Copyright 2008-2012 Calculate Ltd. http://www.calculate-linux.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
from os import path
from calculate.lib.cl_datavars import Variables
from calculate.lib.cl_lang import setLocalTranslate
setLocalTranslate('cl_install',sys.modules[__name__])
class InstallDisk(Variables):
vars = ["os_device_hash","os_disk_hash","os_disk_dev",
"os_install_disk_mount","os_disk_mount","os_disk_content",
"os_disk_format","os_disk_type","os_install_disk_format",
"os_install_disk_perform_format","os_install_disk_uuid",
"os_install_disk_use","cl_uuid_set","os_install_disk_id",
"os_disk_uuid","os_disk_id","os_install_mbr","os_disk_grub",
"os_install_disk_grub","os_disk_part","os_disk_table",
"os_disk_size","os_disk_name","os_disk_options","os_device_dev",
"os_device_type","os_device_map","os_device_table","os_device_name",
"os_install_disk_options","os_bind_hash","os_bind_path","os_bind_mountpoint",
"os_install_bind_hash","os_install_bind_path","os_install_bind_mountpoint",
"os_install_fstab_mount_conf","os_install_fstab_swap_conf"]
# infomation about disk in hash
os_device_hash = {'hide':True}
# infomation about disk in hash
os_disk_hash = {'hide':True}
# list of available partition devices
os_disk_dev = {}
# list mounted points for installed system
os_install_disk_mount = {}
# list mounted points for current operation system
os_disk_mount = {}
# partition content
os_disk_content = {}
# list filesystem for partition devices
os_disk_format = {}
# list type (lvm,raid,partition,disk)
os_disk_type = {}
# install list filesystem for partition devices
os_install_disk_format = {}
# need format
os_install_disk_perform_format = {}
# uudi for install
os_install_disk_uuid = {}
# /dev/sd or UUID= list (by cl_uuid_set)
os_install_disk_use = {}
cl_uuid_set = {'value':'on'}
# install partition's system id
os_install_disk_id = {}
# list uudi for partition devices
os_disk_uuid = {}
# partition's system id
os_disk_id = {}
# disk for boot mbr
os_install_mbr = {}
# list grub id for partition devices
os_disk_grub = {}
# install list grub id for partition devices (depend from mbr)
os_install_disk_grub = {}
# type of partition devices (primary, extended or logical)
os_disk_part = {}
# partition table on parent device
os_disk_table = {}
# partition size
os_disk_size = {}
# label of partitions
os_disk_name = {}
# list mount options
os_disk_options = {}
# devices
os_device_dev = {}
# device type (hdd,cdrom,usb-flash)
os_device_type = {}
# map number for grub
os_device_map = {}
# table for device
os_device_table = {}
# name of device
os_device_name = {}
# list mount options of installed os
os_install_disk_options = {}
os_bind_hash = {'hide':True}
# directories for bind
os_bind_path = {}
# mountpoint for directories bind
os_bind_mountpoint = {}
os_install_bind_hash = {'hide':True}
# install directories for bind
os_install_bind_path = {}
# mountpoint for install directories bind
os_install_bind_mountpoint = {}
# information about mount points for fstab
os_install_fstab_mount_conf = {}
# information about swap for fstab
os_install_fstab_swap_conf = {}