[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#777752: partman-efi: x32 port



Package: partman-efi
Version: 60
Severity: wishlist
Tags: d-i patch

User: debian-x32@lists.debian.org
Usertags: port-x32 di-x32

Hi!
Please apply the attached patch.  It adds support for the x32 architecture. 
The patch follows in every case amd64 code paths, as x32 is a new ABI atop
the amd64 kernel.  The patch can be applied directly to the d-i/partman-efi
git repository.

If you want to test, as the patch-set for x32 in d-i involves around twenty
packages, you'll want ready packages from the repository at debian-x32.org.
Complete d-i isos are available at http://debian-x32.org/#debian-installer
while debs/udebs/modified sources at http://ftp.debian-x32.org/debian/


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'unreleased'), (50, 'experimental')
Architecture: x32 (x86_64)

Kernel: Linux 3.19.0-x32 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
>From 4ae9c282d11f364a6b1b92207807a76a08d1bedd Mon Sep 17 00:00:00 2001
From: Adam Borowski <kilobyte@angband.pl>
Date: Thu, 12 Feb 2015 07:33:04 +0100
Subject: [PATCH] Add support for x32.

---
 commit.d/format_efi | 2 +-
 debian/control      | 2 +-
 fstab.d/efi         | 2 +-
 init.d/efi          | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/commit.d/format_efi b/commit.d/format_efi
index a78444a..223ebae 100755
--- a/commit.d/format_efi
+++ b/commit.d/format_efi
@@ -4,7 +4,7 @@
 
 ARCH="$(archdetect)"
 case $ARCH in
-    i386/*|amd64/*)
+    i386/*|amd64/*|x32/*)
 	new_efi_fs=fat32
 	;;
     *)
diff --git a/debian/control b/debian/control
index a91db3b..e83c29f 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,6 @@ Vcs-Git: git://anonscm.debian.org/d-i/partman-efi.git
 
 Package: partman-efi
 Package-Type: udeb
-Architecture: i386 ia64 amd64 arm64
+Architecture: i386 ia64 amd64 arm64 x32
 Depends: partman-base (>= 114), efi-modules, dosfstools-udeb, ${misc:Depends}
 Description: Add to partman support for EFI System Partitions
diff --git a/fstab.d/efi b/fstab.d/efi
index 14b6696..42b0c6f 100755
--- a/fstab.d/efi
+++ b/fstab.d/efi
@@ -4,7 +4,7 @@
 
 ARCH="$(archdetect)"
 case $ARCH in
-    i386/mac|amd64/mac)
+    i386/mac|amd64/mac|x32/mac)
 	# Not yet sure what to do on Intel Macs.  Mounting the EFI System
 	# Partition on /boot/efi will change the behaviour of grub-install,
 	# so it seems best to avoid it for the moment.
diff --git a/init.d/efi b/init.d/efi
index 7b71990..cc9ad61 100755
--- a/init.d/efi
+++ b/init.d/efi
@@ -12,7 +12,7 @@ if [ -d /proc/efi ] || [ -d /sys/firmware/efi ]; then
 	> /var/lib/partman/efi
 else
 	case $ARCH in
-	    i386/mac|amd64/mac)
+	    i386/mac|amd64/mac|x32/mac)
 		# Intel Macs have an EFI partition, regardless of
 		# whether we're currently booted using BIOS
 		# compatibility or not (if we are, we won't be able to
@@ -88,7 +88,7 @@ log "Found $NUM_ESP ESPs, $NUM_NO non-ESPs"
 
 if [ $NUM_ESP = 0 ] && [ $NUM_NO -gt 0 ]; then
 	case $ARCH in
-		i386/*|amd64/*)
+		i386/*|amd64/*|x32/*)
 			db_input critical partman-efi/non_efi_system || true
 			db_go || exit 1
 			db_fset partman-efi/non_efi_system seen true
-- 
2.1.4


Reply to: