From 34252150c3ca24e1dc88712406f73f0a78d9ea55 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sun, 16 Aug 2015 12:21:26 +0200 Subject: use a constants handler Add support for using squashfs as an alternative to creating a tarball of a directory tree. --- vmdebootstrap/constants.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 vmdebootstrap/constants.py (limited to 'vmdebootstrap/constants.py') diff --git a/vmdebootstrap/constants.py b/vmdebootstrap/constants.py new file mode 100644 index 0000000..9f39415 --- /dev/null +++ b/vmdebootstrap/constants.py @@ -0,0 +1,52 @@ +""" + Constants which can be used by any handler +""" +# -*- coding: utf-8 -*- +# +# constants.py +# +# Copyright 2015 Neil Williams +# +# 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 . + + +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', + } +} -- cgit v1.2.1