~ubuntu-virt/vmbuilder/trunk

« back to all changes in this revision

Viewing changes to suites/gutsy

  • Committer: Soren Hansen
  • Date: 2008-06-27 12:47:26 UTC
  • Revision ID: soren.hansen@canonical.com-20080627124726-kj690sepircudc3h
Import python rewrite.. It's not quite at a useful point yet (only cli+kvm+hardy is in a usable state), but it's getting there..

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
. /usr/share/ubuntu-vm-builder/suites/suites-common
2
 
 
3
 
updategrub="/usr/sbin/update-grub"
4
 
grubroot=/usr/lib/grub
5
 
 
6
 
check_kernel_flavour() {
7
 
        case "$ARCH" in
8
 
                i386)
9
 
                        case "$1" in
10
 
                                386|generic|rt|server|virtual)
11
 
                                        :
12
 
                                ;;
13
 
                                *)
14
 
                                        echo "Unsupported kernel flavour for Gutsy/i386."
15
 
                                        echo "Supported flavours are: 386 generic rt server virtual"
16
 
                                        exit 1
17
 
                                ;;
18
 
                        esac
19
 
                        ;;
20
 
                amd64)
21
 
                        case "$1" in
22
 
                                generic|rt|server)
23
 
                                        :
24
 
                                ;;
25
 
                                *)
26
 
                                        echo "Unsupported kernel flavour for Gutsy/amd64."
27
 
                                        echo "Supported flavours are: generic rt server"
28
 
                                        exit 1
29
 
                                ;;
30
 
                        esac
31
 
                        ;;
32
 
                lpia)
33
 
                        case "$1" in
34
 
                                lpia|lpiacompat)
35
 
                                        :
36
 
                                ;;
37
 
                                *)
38
 
                                        echo "Unsupported kernel flavour for Hardy/lpia."
39
 
                                        echo "Supported flavours are: lpia lpiacompat"
40
 
                                        exit 1
41
 
                                ;;
42
 
                        esac
43
 
                        ;;
44
 
                *)
45
 
                        echo "Unsupported architecture for Gutsy"
46
 
                        exit 1
47
 
                        ;;
48
 
        esac
49
 
}
50
 
 
51
 
default_kernel() {
52
 
        case "$ARCH" in
53
 
                i386)
54
 
                        KERNEL_FLAVOUR=virtual
55
 
                        ;;
56
 
                amd64)
57
 
                        KERNEL_FLAVOUR=server
58
 
                        ;;
59
 
                lpia)
60
 
                        KERNEL_FLAVOUR=lpia
61
 
                        ;;
62
 
                *)
63
 
                        echo "Unsupported architecture for Gutsy"
64
 
                        exit 1
65
 
        esac
66
 
}
67
 
 
68
 
suite_do_fstab() {
69
 
        common_do_fstab
70
 
}
71
 
 
72
 
suite_generate_device_map() {
73
 
        common_write_device_map_with_uuids
74
 
}
75
 
 
76
 
suite_mangle_grub_menu_lst() {
77
 
        common_mangle_grub_menu_list_with_uuid
78
 
}
79
 
 
80
 
#
81
 
# Add package names to PKGS
82
 
#
83
 
suite_extra_packages() {
84
 
        :
85
 
}