device_option_check.cfg 2.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
- device_option_check: install setup image_copy unattended_install
    type = device_option_check
    variants:
        - ide_ver_check:
            only ide ahci
            parameter_value = random
            params_name = blk_extra_params
            parameter_prefix = ver=
            parameter_len = 4
            start_vm = no
            check_cmds = hdparm
            cmd = hdparm -i `ls /dev/[svh]da`
            pattern = FwRev=%s
            Windows:
                cmd = wmic diskdrive get firmwarerevision
                pattern = %s
            check_in_qtree = yes
            qtree_check_keyword = id
            qtree_check_value = image1
            qtree_check_option = ver
            force_drive_format = ide-drive
        - blk_wwn_check:
            only ide virtio_scsi ahci
            only RHEL
            parameter_value = 0x5000c50015ea71ad
            check_in_qtree = yes
            qtree_check_keyword = id
            qtree_check_option = wwn
            start_vm = yes
30 31 32
            check_cmds = ls
            virtio_scsi:
                check_cmds += " sg"
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
            cmd_ls = ls -l /dev/disk/by-id/wwn*
            pattern_ls = wwn-%s
            cmd_sg = sg_inq -p 0x83 `ls /dev/[svh]da`
            pattern_sg = \[%s\]
            variants:
                - default_drive_format:
                - special_drive_format:
                    ide, ahci:
                        force_drive_format = ide-drive
                    virtio_scsi:
                        force_drive_format = scsi-disk
            variants:
                - wwn_disk:
                    params_name = blk_extra_params_image1
                    blk_extra_params_image1 = wwn=0x5000c50015ea71ad
                    qtree_check_value = image1
                - wwn_cdrom:
                    params_name = blk_extra_params_cd1
                    blk_extra_params_cd1 = wwn=0x5000c50015ea71ad
                    qtree_check_value = cd1
                    cmd_sg = sg_inq -p 0x83 `ls /dev/sr*`
                    cdrom_cd1 = isos/windows/winutils.iso
55
        - blk_serial_check:
56 57 58 59 60 61 62 63 64 65 66
            parameter_value = random
            params_name = drive_serial_image1
            ignore_str= !"#$%&'()*+./;<=>?@[\]^`{|}~,
            convert_str =
            parameter_len = 20
            start_vm = no
            check_in_qtree = yes
            check_cmds = ls
            cmd = ls /dev/disk/by-id
            pattern = %s
            Windows:
P
peixiu 已提交
67
                cmd = WINUTILS:\hddsn.exe C:
68 69 70 71 72
                pattern = %s
            check_in_qtree = yes
            qtree_check_keyword = id
            qtree_check_value = image1
            qtree_check_option = serial