summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/common.pm28
1 files changed, 27 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 9ac290b2d..474d34c21 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -10,7 +10,7 @@ use run_program;
use Exporter;
our @ISA = qw(Exporter);
-our @EXPORT = qw($SECTORSIZE N P N_ check_for_xserver files_exist formatTime MB formatXiB get_libdir get_parent_uid is_running is_uefi makedev mageia_release mageia_release_info removeXiBSuffix require_root_capability setVirtual set_alternative set_l10n_sort set_permissions to_utf8 translate unmakedev);
+our @EXPORT = qw($SECTORSIZE N P N_ check_for_xserver files_exist formatTime MB formatXiB get_libdir get_parent_uid is_running is_uefi kernel_uefi_type makedev mageia_release mageia_release_info removeXiBSuffix require_root_capability setVirtual set_alternative set_l10n_sort set_permissions to_utf8 translate uefi_type unmakedev);
# perl_checker: RE-EXPORT-ALL
push @EXPORT, @MDK::Common::EXPORT;
@@ -726,6 +726,32 @@ Checks if we are on an uefi system
sub is_uefi() { -e "/sys/firmware/efi" }
+=item kernel_uefi_type()
+
+Returns the short name of the UEFI machine type supported by the kernel stub loader
+
+=cut
+
+sub kernel_uefi_type() {
+ # No support for ARM yet
+ arch() =~ /i.86/ ? 'ia32' : 'x64';
+}
+
+=item uefi_type()
+
+Returns the UEFI machine type short name
+
+=cut
+
+sub uefi_type() {
+ if (-e '/sys/firmware/efi/fw_platform_size') {
+ # No support for ARM yet
+ cat_('/sys/firmware/efi/fw_platform_size') =~ /32/ ? 'ia32' : 'x64';
+ } else {
+ 'none';
+ }
+}
+
=item cmp_kernel_versions($va, $vb)
Compare two kernel versions
ted Simplified Chinese translationFunda Wang2005-03-121-99/+85 * *** empty log message ***Arpad Biro2005-03-111-198/+112 * Updated translation.Marek Laane2005-03-111-31/+24 * updated pot filePablo Saratxaga2005-03-1119-604/+414 * updated pot filePablo Saratxaga2005-03-1115-762/+643 * updated pot filePablo Saratxaga2005-03-1112-548/+435 * updated pot filePablo Saratxaga2005-03-1119-388/+291 * updated pot filePablo Saratxaga2005-03-1112-545/+308 * fix translationsThierry Vignaud2005-03-1113-113/+113 * *** empty log message ***Dovix2005-03-111-21/+18 * grf, translate last minute stringsPer Øyvind Karlsen2005-03-111-185/+105 * Updated Norwegian Nynorsk translation.Karl Ove Hufthammer2005-03-101-181/+137 * fix kde mergeThierry Vignaud2005-03-1068-196/+196 * further merge with KDEThierry Vignaud2005-03-1068-117/+116 * updateThierry Vignaud2005-03-102-30/+28 * remove duplicated stringThierry Vignaud2005-03-1068-544/+0 * remove uneeded stringThierry Vignaud2005-03-1068-272/+0 * merge translations from KDEThierry Vignaud2005-03-1060-478/+478 * merge in new stringsThierry Vignaud2005-03-10