summaryrefslogtreecommitdiff
path: root/vmdebootstrap/constants.py
blob: 9f39415a6346e8fe5655a6c1be96a24dc11a6095 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
  Constants which can be used by any handler
"""
# -*- coding: utf-8 -*-
#
#  constants.py
#
#  Copyright 2015 Neil Williams <codehelp@debian.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


arch_table = {  # pylint: disable=invalid-name
    'amd64': {
        'removable': '/EFI/boot/bootx64.efi',  # destination location
        'install': '/EFI/debian/grubx64.efi',  # package location
        'package': 'grub-efi-amd64',  # bootstrap package
        'bin_package': 'grub-efi-amd64-bin',  # binary only
        'extra': 'i386',  # architecture to add binary package
        'exclusive': False,  # only EFI supported for this arch.
        'target': 'x86_64-efi',  # grub target name
    },
    'i386': {
        'removable': '/EFI/boot/bootia32.efi',
        'install': '/EFI/debian/grubia32.efi',
        'package': 'grub-efi-ia32',
        'bin_package': 'grub-efi-ia32-bin',
        'extra': None,
        'exclusive': False,
        'target': 'i386-efi',
    },
    'arm64': {
        'removable': '/EFI/boot/bootaa64.efi',
        'install': '/EFI/debian/grubaa64.efi',
        'package': 'grub-efi-arm64',
        'bin_package': 'grub-efi-arm64-bin',
        'extra': None,
        'exclusive': True,
        'target': 'arm64-efi',
    }
}