~ubuntu-branches/ubuntu/raring/virtinst/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/9005_ubuntu_precise.patch/virtinst/osdict.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-01-19 10:52:45 UTC
  • Revision ID: package-import@ubuntu.com-20120119105245-ygwvwoghxb4no58w
Tags: 0.600.0-1ubuntu4
debian/patches/9005_ubuntu_precise.patch: Add Ubuntu precise as a
supported distro. (LP: #918538) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# List of OS Specific data
 
3
#
 
4
# Copyright 2006-2008  Red Hat, Inc.
 
5
# Jeremy Katz <katzj@redhat.com>
 
6
#
 
7
# This program is free software; you can redistribute it and/or modify
 
8
# it under the terms of the GNU General Public License as published by
 
9
# the Free  Software Foundation; either version 2 of the License, or
 
10
# (at your option)  any later version.
 
11
#
 
12
# This program is distributed in the hope that it will be useful,
 
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
# GNU General Public License for more details.
 
16
#
 
17
# You should have received a copy of the GNU General Public License
 
18
# along with this program; if not, write to the Free Software
 
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
20
# MA 02110-1301 USA.
 
21
 
 
22
import support
 
23
from VirtualDevice import VirtualDevice
 
24
from virtinst import _gettext as _
 
25
 
 
26
HV_ALL = "all"
 
27
 
 
28
"""
 
29
Default values for OS_TYPES keys. Can be overwritten at os_type or
 
30
variant level
 
31
"""
 
32
 
 
33
NET   = VirtualDevice.VIRTUAL_DEV_NET
 
34
DISK  = VirtualDevice.VIRTUAL_DEV_DISK
 
35
INPUT = VirtualDevice.VIRTUAL_DEV_INPUT
 
36
SOUND = VirtualDevice.VIRTUAL_DEV_AUDIO
 
37
VIDEO = VirtualDevice.VIRTUAL_DEV_VIDEO
 
38
 
 
39
VIRTIO_DISK = {
 
40
    "bus" : [
 
41
        (support.SUPPORT_CONN_HV_VIRTIO, "virtio"),
 
42
    ]
 
43
}
 
44
 
 
45
VIRTIO_NET = {
 
46
    "model" : [
 
47
        (support.SUPPORT_CONN_HV_VIRTIO, "virtio"),
 
48
    ]
 
49
}
 
50
 
 
51
USB_TABLET = {
 
52
    "type" : [
 
53
        (HV_ALL, "tablet"),
 
54
    ],
 
55
    "bus"  : [
 
56
        (HV_ALL, "usb"),
 
57
    ]
 
58
}
 
59
 
 
60
VGA_VIDEO = {
 
61
    "model_type": [
 
62
        (HV_ALL, "vga"),
 
63
    ]
 
64
}
 
65
 
 
66
DEFAULTS = {
 
67
    "acpi":             True,
 
68
    "apic":             True,
 
69
    "clock":            "utc",
 
70
    "continue":         False,
 
71
    "distro":           None,
 
72
    "label":            None,
 
73
    "pv_cdrom_install": False,
 
74
    "supported":        False,
 
75
 
 
76
    "devices" : {
 
77
        #  "devname" : { "attribute" : [( ["applicable", "hv-type", list"],
 
78
        #                               "recommended value for hv-types" ),]},
 
79
        INPUT   : {
 
80
            "type" : [
 
81
                (HV_ALL, "mouse")
 
82
            ],
 
83
            "bus"  : [
 
84
                (HV_ALL, "ps2")
 
85
            ],
 
86
        },
 
87
 
 
88
        DISK    : {
 
89
            "bus"  : [
 
90
                (HV_ALL, None)
 
91
            ],
 
92
        },
 
93
 
 
94
        NET     : {
 
95
            "model": [
 
96
                (HV_ALL, None)
 
97
            ],
 
98
        },
 
99
 
 
100
        SOUND : {
 
101
            "model": [
 
102
                (support.SUPPORT_CONN_HV_SOUND_ICH6, "ich6"),
 
103
                (support.SUPPORT_CONN_HV_SOUND_AC97, "ac97"),
 
104
                (HV_ALL, "es1370"),
 
105
            ]
 
106
        },
 
107
 
 
108
        VIDEO : {
 
109
            "model_type": [
 
110
                (HV_ALL, "cirrus"),
 
111
            ]
 
112
        },
 
113
    }
 
114
}
 
115
 
 
116
def sort_helper(tosort, sortpref=None):
 
117
    """
 
118
    Helps properly sorting os dictionary entires
 
119
    """
 
120
    sortby_mappings = {}
 
121
    distro_mappings = {}
 
122
    retlist = []
 
123
    sortpref = sortpref or []
 
124
 
 
125
    # Make sure we are sorting by 'sortby' if specified, and group distros
 
126
    # by their 'distro' tag first and foremost
 
127
    for key, osinfo in tosort.items():
 
128
        if osinfo.get("skip"):
 
129
            continue
 
130
 
 
131
        sortby = osinfo.get("sortby")
 
132
        if not sortby:
 
133
            sortby = key
 
134
        sortby_mappings[sortby] = key
 
135
 
 
136
        distro = osinfo.get("distro") or "zzzzzzz"
 
137
        if distro not in distro_mappings:
 
138
            distro_mappings[distro] = []
 
139
        distro_mappings[distro].append(sortby)
 
140
 
 
141
    # We want returned lists to be sorted descending by 'distro', so we get
 
142
    # debian5, debian4, fedora14, fedora13
 
143
    #   rather than
 
144
    # debian4, debian5, fedora13, fedora14
 
145
    for distro_list in distro_mappings.values():
 
146
        distro_list.sort()
 
147
        distro_list.reverse()
 
148
 
 
149
    sorted_distro_list = distro_mappings.keys()
 
150
    sorted_distro_list.sort()
 
151
    sortpref.reverse()
 
152
    for prefer in sortpref:
 
153
        if not prefer in sorted_distro_list:
 
154
            continue
 
155
        sorted_distro_list.remove(prefer)
 
156
        sorted_distro_list.insert(0, prefer)
 
157
 
 
158
    for distro in sorted_distro_list:
 
159
        distro_list = distro_mappings[distro]
 
160
        for key in distro_list:
 
161
            orig_key = sortby_mappings[key]
 
162
            retlist.append(orig_key)
 
163
 
 
164
    return retlist
 
165
 
 
166
def parse_key_entry(conn, hv_type, key_entry, defaults):
 
167
    ret = None
 
168
    found = False
 
169
    if type(key_entry) == list:
 
170
 
 
171
        # List of tuples with (support -> value) mappings
 
172
        for tup in key_entry:
 
173
 
 
174
            support_key = tup[0]
 
175
            value = tup[1]
 
176
 
 
177
            # HV_ALL means don't check for support, just return the value
 
178
            if support_key != HV_ALL:
 
179
                support_ret = support.check_conn_hv_support(conn,
 
180
                                                            support_key,
 
181
                                                            hv_type)
 
182
 
 
183
                if support_ret != True:
 
184
                    continue
 
185
 
 
186
            found = True
 
187
            ret = value
 
188
            break
 
189
    else:
 
190
        found = True
 
191
        ret = key_entry
 
192
 
 
193
    if not found and defaults:
 
194
        ret = parse_key_entry(conn, hv_type, defaults, None)
 
195
 
 
196
    return ret
 
197
 
 
198
def lookup_osdict_key(conn, hv_type, os_type, var, key):
 
199
 
 
200
    defaults = DEFAULTS[key]
 
201
    dictval = defaults
 
202
    if os_type:
 
203
        if var and key in OS_TYPES[os_type]["variants"][var]:
 
204
            dictval = OS_TYPES[os_type]["variants"][var][key]
 
205
        elif key in OS_TYPES[os_type]:
 
206
            dictval = OS_TYPES[os_type][key]
 
207
 
 
208
    return parse_key_entry(conn, hv_type, dictval, defaults)
 
209
 
 
210
 
 
211
def lookup_device_param(conn, hv_type, os_type, var, device_key, param):
 
212
 
 
213
    os_devs = lookup_osdict_key(conn, hv_type, os_type, var, "devices")
 
214
    defaults = DEFAULTS["devices"]
 
215
 
 
216
    for devs in [os_devs, defaults]:
 
217
        if device_key not in devs:
 
218
            continue
 
219
 
 
220
        return parse_key_entry(conn, hv_type, devs[device_key][param],
 
221
                               defaults.get(param))
 
222
 
 
223
    raise RuntimeError(_("Invalid dictionary entry for device '%s %s'" %
 
224
                       (device_key, param)))
 
225
 
 
226
 
 
227
# NOTE: keep variant keys using only lowercase so we can do case
 
228
#       insensitive checks on user passed input
 
229
OS_TYPES = {
 
230
"linux": {
 
231
    "label": "Linux",
 
232
    "variants": {
 
233
 
 
234
    "rhel2.1": {
 
235
        "label": "Red Hat Enterprise Linux 2.1",
 
236
        "distro": "rhel"
 
237
    },
 
238
    "rhel3": {
 
239
        "label": "Red Hat Enterprise Linux 3",
 
240
        "distro": "rhel"
 
241
    },
 
242
    "rhel4": {
 
243
        "label": "Red Hat Enterprise Linux 4",
 
244
        "distro": "rhel",
 
245
        "supported": True,
 
246
    },
 
247
    "rhel5": {
 
248
        "label": "Red Hat Enterprise Linux 5",
 
249
        "distro": "rhel",
 
250
    },
 
251
    "rhel5.4": {
 
252
        "label": "Red Hat Enterprise Linux 5.4 or later",
 
253
        "distro": "rhel",
 
254
        "supported": True,
 
255
        "devices" : {
 
256
            DISK : VIRTIO_DISK,
 
257
            NET  : VIRTIO_NET,
 
258
        },
 
259
    },
 
260
    "rhel6": {
 
261
        "label": "Red Hat Enterprise Linux 6",
 
262
        "distro": "rhel",
 
263
        "supported": True,
 
264
        "devices" : {
 
265
            DISK : VIRTIO_DISK,
 
266
            NET  : VIRTIO_NET,
 
267
            INPUT: USB_TABLET,
 
268
        }
 
269
    },
 
270
 
 
271
    "fedora5": {
 
272
        "sortby": "fedora05",
 
273
        "label": "Fedora Core 5",
 
274
        "distro": "fedora"
 
275
    },
 
276
    "fedora6": {
 
277
        "sortby": "fedora06",
 
278
        "label": "Fedora Core 6",
 
279
        "distro": "fedora"
 
280
    },
 
281
    "fedora7": {
 
282
        "sortby": "fedora07",
 
283
        "label": "Fedora 7",
 
284
        "distro": "fedora"
 
285
    },
 
286
    "fedora8": {
 
287
        "sortby": "fedora08",
 
288
        "label": "Fedora 8",
 
289
        "distro": "fedora"
 
290
    },
 
291
    "fedora9": {
 
292
        "sortby":  "fedora09",
 
293
        "label": "Fedora 9",
 
294
        "distro": "fedora",
 
295
        "devices" : {
 
296
            # Apparently F9 has selinux errors when installing with virtio:
 
297
            # https://bugzilla.redhat.com/show_bug.cgi?id=470386
 
298
            #DISK : VIRTIO_DISK,
 
299
            NET  : VIRTIO_NET,
 
300
        }
 
301
    },
 
302
    "fedora10": {
 
303
        "label": "Fedora 10",
 
304
        "distro": "fedora",
 
305
        "devices" : {
 
306
            DISK : VIRTIO_DISK,
 
307
            NET  : VIRTIO_NET,
 
308
        }
 
309
    },
 
310
    "fedora11": {
 
311
        "label": "Fedora 11",
 
312
        "distro": "fedora",
 
313
        "devices" : {
 
314
            DISK : VIRTIO_DISK,
 
315
            NET  : VIRTIO_NET,
 
316
            INPUT: USB_TABLET,
 
317
        }
 
318
    },
 
319
    "fedora12": {
 
320
        "label": "Fedora 12",
 
321
        "distro": "fedora",
 
322
        "devices" : {
 
323
            DISK : VIRTIO_DISK,
 
324
            NET  : VIRTIO_NET,
 
325
            INPUT: USB_TABLET,
 
326
        }
 
327
    },
 
328
    "fedora13": {
 
329
        "label": "Fedora 13", "distro": "fedora",
 
330
        "devices" : {
 
331
            DISK : VIRTIO_DISK,
 
332
            NET  : VIRTIO_NET,
 
333
            INPUT: USB_TABLET,
 
334
        }
 
335
    },
 
336
    "fedora14": {
 
337
        "label": "Fedora 14",
 
338
        "distro": "fedora",
 
339
        "supported": True,
 
340
        "devices" : {
 
341
            DISK : VIRTIO_DISK,
 
342
            NET  : VIRTIO_NET,
 
343
            INPUT: USB_TABLET,
 
344
        }
 
345
    },
 
346
    "fedora15": {
 
347
        "label": "Fedora 15",
 
348
        "distro": "fedora",
 
349
        "supported": True,
 
350
        "devices" : {
 
351
            DISK : VIRTIO_DISK,
 
352
            NET  : VIRTIO_NET,
 
353
            INPUT: USB_TABLET,
 
354
        }
 
355
    },
 
356
    "fedora16": {
 
357
        "label": "Fedora 16",
 
358
        "distro": "fedora",
 
359
        "supported": True,
 
360
        "devices" : {
 
361
            DISK : VIRTIO_DISK,
 
362
            NET  : VIRTIO_NET,
 
363
            INPUT: USB_TABLET,
 
364
        }
 
365
    },
 
366
 
 
367
    "sles10": {
 
368
        "label": "Suse Linux Enterprise Server",
 
369
        "distro": "suse",
 
370
        "supported": True,
 
371
    },
 
372
    "sles11": {
 
373
        "label": "Suse Linux Enterprise Server 11",
 
374
        "distro": "suse",
 
375
        "supported": True,
 
376
        "devices" : {
 
377
            DISK : VIRTIO_DISK,
 
378
            NET  : VIRTIO_NET,
 
379
        },
 
380
    },
 
381
 
 
382
    "mandriva2009": {
 
383
        "label": "Mandriva Linux 2009 and earlier",
 
384
        "distro": "mandriva"
 
385
    },
 
386
    "mandriva2010": {
 
387
        "label": "Mandriva Linux 2010 and later",
 
388
        "distro": "mandriva",
 
389
        "supported": True,
 
390
        "devices" : {
 
391
            DISK : VIRTIO_DISK,
 
392
            NET  : VIRTIO_NET,
 
393
        },
 
394
    },
 
395
 
 
396
    "mes5": {
 
397
        "label": "Mandriva Enterprise Server 5.0",
 
398
        "distro": "mandriva",
 
399
    },
 
400
    "mes5.1": {
 
401
        "label": "Mandriva Enterprise Server 5.1 and later",
 
402
        "distro": "mandriva",
 
403
        "supported": True,
 
404
        "devices" : {
 
405
            DISK : VIRTIO_DISK,
 
406
            NET  : VIRTIO_NET,
 
407
        },
 
408
    },
 
409
 
 
410
    "debianetch": {
 
411
        "label": "Debian Etch",
 
412
        "distro": "debian",
 
413
        "sortby": "debian4",
 
414
    },
 
415
    "debianlenny": {
 
416
        "label": "Debian Lenny",
 
417
        "distro": "debian",
 
418
        "sortby": "debian5",
 
419
        "supported": True,
 
420
        "devices" : {
 
421
            DISK : VIRTIO_DISK,
 
422
            NET  : VIRTIO_NET,
 
423
        },
 
424
    },
 
425
    "debiansqueeze": {
 
426
        "label": "Debian Squeeze",
 
427
        "distro": "debian",
 
428
        "sortby": "debian6",
 
429
        "supported": True,
 
430
        "devices" : {
 
431
            DISK : VIRTIO_DISK,
 
432
            NET  : VIRTIO_NET,
 
433
            INPUT: USB_TABLET,
 
434
        }
 
435
    },
 
436
 
 
437
    "ubuntuhardy": {
 
438
        "label": "Ubuntu 8.04 LTS (Hardy Heron)",
 
439
        "distro": "ubuntu",
 
440
        "supported": True,
 
441
        "devices" : {
 
442
            NET  : VIRTIO_NET,
 
443
        },
 
444
    },
 
445
    "ubuntuintrepid": {
 
446
        "label": "Ubuntu 8.10 (Intrepid Ibex)",
 
447
        "distro": "ubuntu",
 
448
        "devices" : {
 
449
            NET  : VIRTIO_NET,
 
450
        },
 
451
    },
 
452
    "ubuntujaunty": {
 
453
        "label": "Ubuntu 9.04 (Jaunty Jackalope)",
 
454
        "distro": "ubuntu",
 
455
        "devices" : {
 
456
            DISK : VIRTIO_DISK,
 
457
            NET  : VIRTIO_NET,
 
458
        },
 
459
    },
 
460
    "ubuntukarmic": {
 
461
        "label": "Ubuntu 9.10 (Karmic Koala)",
 
462
        "distro": "ubuntu",
 
463
        "devices" : {
 
464
            DISK : VIRTIO_DISK,
 
465
            NET  : VIRTIO_NET,
 
466
        },
 
467
    },
 
468
    "ubuntulucid": {
 
469
        "label": "Ubuntu 10.04 (Lucid Lynx)",
 
470
        "distro": "ubuntu",
 
471
        "supported": True,
 
472
        "devices" : {
 
473
            DISK : VIRTIO_DISK,
 
474
            NET  : VIRTIO_NET,
 
475
        },
 
476
    },
 
477
    "ubuntumaverick": {
 
478
        "label": "Ubuntu 10.10 (Maverick Meerkat)",
 
479
        "distro": "ubuntu",
 
480
        "supported": True,
 
481
        "devices" : {
 
482
            DISK : VIRTIO_DISK,
 
483
            NET  : VIRTIO_NET,
 
484
        },
 
485
    },
 
486
    "ubuntunatty": {
 
487
        "label": "Ubuntu 11.04 (Natty Narwhal)",
 
488
        "distro": "ubuntu",
 
489
        "supported": True,
 
490
        "devices" : {
 
491
            DISK : VIRTIO_DISK,
 
492
            NET  : VIRTIO_NET,
 
493
        },
 
494
    },
 
495
    "ubuntuoneiric": {
 
496
        "label": "Ubuntu 11.10 (Oneiric Ocelot)",
 
497
        "distro": "ubuntu",
 
498
        "supported": True,
 
499
        "devices" : {
 
500
            DISK : VIRTIO_DISK,
 
501
            NET  : VIRTIO_NET,
 
502
        },
 
503
    },
 
504
 
 
505
    "generic24": {
 
506
        "label": "Generic 2.4.x kernel"
 
507
    },
 
508
    "generic26": {
 
509
        "label": "Generic 2.6.x kernel"
 
510
    },
 
511
    "virtio26": {
 
512
        "sortby": "genericvirtio26",
 
513
        "label": "Generic 2.6.25 or later kernel with virtio",
 
514
        "devices" : {
 
515
            DISK : VIRTIO_DISK,
 
516
            NET  : VIRTIO_NET,
 
517
        },
 
518
    },
 
519
 
 
520
    },
 
521
},
 
522
 
 
523
"windows": {
 
524
    "label": "Windows",
 
525
    "clock": "localtime",
 
526
    "continue": True,
 
527
    "devices" : {
 
528
        INPUT : USB_TABLET,
 
529
        VIDEO : VGA_VIDEO,
 
530
    },
 
531
 
 
532
    "variants": {
 
533
 
 
534
    "winxp": {
 
535
        "label": "Microsoft Windows XP",
 
536
        "sortby": "mswin5",
 
537
        "distro" : "win",
 
538
        "supported": True,
 
539
        "acpi": [(support.SUPPORT_CONN_HV_SKIP_DEFAULT_ACPI, False)],
 
540
        "apic": [(support.SUPPORT_CONN_HV_SKIP_DEFAULT_ACPI, False)],
 
541
    },
 
542
    "winxp64": {
 
543
        "label": "Microsoft Windows XP (x86_64)",
 
544
        "supported": True,
 
545
        "sortby": "mswin564",
 
546
        "distro": "win",
 
547
    },
 
548
    "win2k": {
 
549
        "label": "Microsoft Windows 2000",
 
550
        "sortby" : "mswin4",
 
551
        "distro": "win",
 
552
        "acpi": [(support.SUPPORT_CONN_HV_SKIP_DEFAULT_ACPI, False)],
 
553
        "apic": [(support.SUPPORT_CONN_HV_SKIP_DEFAULT_ACPI, False)],
 
554
    },
 
555
    "win2k3": {
 
556
        "label": "Microsoft Windows Server 2003",
 
557
        "supported": True,
 
558
        "sortby" : "mswinserv2003",
 
559
        "distro": "winserv",
 
560
    },
 
561
    "win2k8": {
 
562
        "label": "Microsoft Windows Server 2008",
 
563
        "supported": True,
 
564
        "sortby": "mswinserv2008",
 
565
        "distro": "winserv",
 
566
    },
 
567
    "vista": {
 
568
        "label": "Microsoft Windows Vista",
 
569
        "supported": True,
 
570
        "sortby": "mswin6",
 
571
        "distro": "win",
 
572
    },
 
573
    "win7": {
 
574
        "label": "Microsoft Windows 7",
 
575
        "supported": True,
 
576
        "sortby": "mswin7",
 
577
        "distro": "win",
 
578
    },
 
579
 
 
580
    },
 
581
},
 
582
 
 
583
"solaris": {
 
584
    "label": "Solaris",
 
585
    "clock": "localtime",
 
586
    "pv_cdrom_install": True,
 
587
    "variants": {
 
588
 
 
589
    "solaris9": {
 
590
        "label": "Sun Solaris 9",
 
591
    },
 
592
    "solaris10": {
 
593
        "label": "Sun Solaris 10",
 
594
        "devices" : {
 
595
            INPUT : USB_TABLET,
 
596
        },
 
597
    },
 
598
    "opensolaris": {
 
599
        "label": "Sun OpenSolaris",
 
600
        "devices" : {
 
601
            INPUT : USB_TABLET,
 
602
        },
 
603
    },
 
604
 
 
605
    },
 
606
},
 
607
 
 
608
"unix": {
 
609
    "label": "UNIX",
 
610
    "variants": {
 
611
 
 
612
    "freebsd6": {
 
613
        "label": "FreeBSD 6.x" ,
 
614
        # http://www.nabble.com/Re%3A-Qemu%3A-bridging-on-FreeBSD-7.0-STABLE-p15919603.html
 
615
        "devices" : {
 
616
            NET : { "model" : [ (HV_ALL, "ne2k_pci") ] }
 
617
        },
 
618
    },
 
619
    "freebsd7": {
 
620
        "label": "FreeBSD 7.x" ,
 
621
        "devices" : {
 
622
            NET : { "model" : [ (HV_ALL, "ne2k_pci") ] }
 
623
        },
 
624
    },
 
625
    "freebsd8": {
 
626
        "label": "FreeBSD 8.x" ,
 
627
        "supported": True,
 
628
        "devices" : {
 
629
            NET : { "model" : [ (HV_ALL, "e1000") ] }
 
630
        },
 
631
    },
 
632
 
 
633
    "openbsd4": {
 
634
        "label": "OpenBSD 4.x" ,
 
635
        # http://calamari.reverse-dns.net:980/cgi-bin/moin.cgi/OpenbsdOnQemu
 
636
        # https://www.redhat.com/archives/et-mgmt-tools/2008-June/msg00018.html
 
637
        "devices" : {
 
638
            NET  : { "model" : [ (HV_ALL, "pcnet") ] }
 
639
        },
 
640
    },
 
641
 
 
642
    },
 
643
},
 
644
 
 
645
"other": {
 
646
    "label": "Other",
 
647
    "variants": {
 
648
 
 
649
    "msdos": {
 
650
        "label": "MS-DOS",
 
651
        "acpi": False,
 
652
        "apic": False,
 
653
    },
 
654
 
 
655
    "netware4": {
 
656
        "label": "Novell Netware 4",
 
657
    },
 
658
    "netware5": {
 
659
        "label": "Novell Netware 5",
 
660
    },
 
661
    "netware6": {
 
662
        "label": "Novell Netware 6",
 
663
        "pv_cdrom_install": True,
 
664
    },
 
665
 
 
666
    "generic": {
 
667
        "supported": True,
 
668
        "label": "Generic"
 
669
    },
 
670
 
 
671
    },
 
672
}
 
673
}
 
674
 
 
675
# Back compatibility entries
 
676
solaris_compat = OS_TYPES["unix"]["variants"]
 
677
 
 
678
solaris_compat["solaris9"] = OS_TYPES["solaris"]["variants"]["solaris9"].copy()
 
679
solaris_compat["solaris9"]["skip"] = True
 
680
 
 
681
solaris_compat["solaris10"] = OS_TYPES["solaris"]["variants"]["solaris10"].copy()
 
682
solaris_compat["solaris10"]["skip"] = True