Bug#695048: installation-reports: Must manually reboot into non-EFI mode

2013-01-18 Thread Cyril Brulebois
Steve McIntyre st...@einval.com (18/01/2013):
 reassign 695048 partman-efi
 thanks
 
 On Tue, Dec 25, 2012 at 07:47:34PM +0100, Cyril Brulebois wrote:
 Hi Steve,
 
 any insight on this one?
 
 Basically, our existing EFI support doesn't recognise pre-existing EFI
 partitions on dos-partitioned disks. Trivial patch for partman-efi
 here. OK to commit? I think it's a safe thing to add for RC1...

ACK, thanks.

Mraw,
KiBi.


signature.asc
Description: Digital signature


Bug#695048: installation-reports: Must manually reboot into non-EFI mode

2013-01-17 Thread Steve McIntyre
reassign 695048 partman-efi
thanks

On Tue, Dec 25, 2012 at 07:47:34PM +0100, Cyril Brulebois wrote:
Hi Steve,

any insight on this one?

Basically, our existing EFI support doesn't recognise pre-existing EFI
partitions on dos-partitioned disks. Trivial patch for partman-efi
here. OK to commit? I think it's a safe thing to add for RC1...

diff --git a/debian/changelog b/debian/changelog
index ac58e25..b699596 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+partman-efi (34) unstable; urgency=low
+
+  [ Steve McIntyre ]
+  * Recognise already-formatted EFI system partitions on msdos-labelled
+disks. Closes: #695048
+
+ -- Steve McIntyre 93...@debian.org  Thu, 17 Jan 2013 02:50:13 +
+
 partman-efi (33) unstable; urgency=low
 
   [ Updated translations ]
diff --git a/init.d/efi b/init.d/efi
index 3c5a7d2..8955718 100755
--- a/init.d/efi
+++ b/init.d/efi
@@ -28,6 +28,7 @@ fi
 . /lib/partman/lib/base.sh
 
 gpt_efi_type=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
+msdos_efi_type=0xef
 
 for dev in /var/lib/partman/devices/*; do
[ -d $dev ] || continue
@@ -45,6 +46,9 @@ for dev in /var/lib/partman/devices/*; do
elif [ $fs = fat32 ]  echo $name |
  grep -i ^EFI System Partition /dev/null; then
partitions=$partitions $id
+   elif [ $label_type = msdos ]  \
+[ $(blkid -o value -s PART_ENTRY_TYPE -p $path 
2/dev/null) = $msdos_efi_type ]; then
+   partitions=$partitions $id
elif [ $label_type = gpt ]  \
 [ $(blkid -o value -s PART_ENTRY_TYPE -p $path 
2/dev/null) = $gpt_efi_type ]; then
partitions=$partitions $id


-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
This dress doesn't reverse. -- Alden Spiess


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695048: installation-reports: Must manually reboot into non-EFI mode

2012-12-25 Thread Cyril Brulebois
Hi Steve,

any insight on this one?

Greg Wooledge wool...@eeg.ccf.org (03/12/2012):
 Package: installation-reports
 Severity: normal
 
 Dear Maintainer,
* What led up to the situation?
 
 The machine was delivered to me with Windows XP Professional installed, and
 I must keep that on the machine, and bootable.  So I booted the DVD, selected
 manual partitioning, and shrunk the NTFS partition.
 
 In the free space left over, I created a swap partition, and then an ext4
 partition for the root file system.
 
 The installed told me there was No EFI partition found.  This was greatly
 confusing as it is the first time I have ever heard of EFI, and I had no
 way to know what I was supposed to do about it, if anything.
 
* What exactly did you do (or not do) that was effective (or
  ineffective)?
 
 Following advice from IRC, I rebooted the machine and found a BIOS option
 to disable booting the DVD in EFI mode.  With that disabled, the DVD
 would be forced to boot in Legacy mode.  (This BIOS did not allow me
 to rearrange the order of those options, so disabling EFI was the only
 choice.)
 
* What was the outcome of this action?
 
 I rebooted the installation DVD again, and this time got a different menu.
 I created the same swap and ext4 partitions in the free space, and this
 time the installation proceeded without any confusing messages about EFI.
 
* What outcome did you expect instead?
 
 09:36  babilen greycat: Anyway, it sounds as if you are on the right track. 
 I 
 would consider this a bug/problem with the installer btw 
 (forcing GPT when started via EFI even if disk is using MBR)
 09:36  babilen greycat: Would you mind filing a bugreport/installation 
 report 
 after you are done with the installation?
 
 
 -- Package-specific info:
[stripped]

Mraw,
KiBi.


signature.asc
Description: Digital signature


Bug#695048: installation-reports: Must manually reboot into non-EFI mode

2012-12-03 Thread Greg Wooledge
Package: installation-reports
Severity: normal

Dear Maintainer,
   * What led up to the situation?

The machine was delivered to me with Windows XP Professional installed, and
I must keep that on the machine, and bootable.  So I booted the DVD, selected
manual partitioning, and shrunk the NTFS partition.

In the free space left over, I created a swap partition, and then an ext4
partition for the root file system.

The installed told me there was No EFI partition found.  This was greatly
confusing as it is the first time I have ever heard of EFI, and I had no
way to know what I was supposed to do about it, if anything.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Following advice from IRC, I rebooted the machine and found a BIOS option
to disable booting the DVD in EFI mode.  With that disabled, the DVD
would be forced to boot in Legacy mode.  (This BIOS did not allow me
to rearrange the order of those options, so disabling EFI was the only
choice.)

   * What was the outcome of this action?

I rebooted the installation DVD again, and this time got a different menu.
I created the same swap and ext4 partitions in the free space, and this
time the installation proceeded without any confusing messages about EFI.

   * What outcome did you expect instead?

09:36  babilen greycat: Anyway, it sounds as if you are on the right track. I 
would consider this a bug/problem with the installer btw 
(forcing GPT when started via EFI even if disk is using MBR)
09:36  babilen greycat: Would you mind filing a bugreport/installation report 
after you are done with the installation?


-- Package-specific info:

Boot method: CD
Image version: debian-wheezy-DI-b4-amd64-netinst.iso (Nov 18 mtime)
Date: Date and time of the install

Machine: HP Compaq Elite 8300 Small Form Factor
Partitions: df -Tl will do; the raw partition table is preferred


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O]
Detect network card:[O]
Configure network:  [O]
Detect CD:  [O]
Load installer modules: [O]
Clock/timezone setup:   [O]
User/password setup:[O]
Detect hard drives: [O]
Partition hard drives:  [E]
Install base system:[O]
Install tasks:  [O]
Install boot loader:[O]
Overall install:[E]

Comments/Problems:

The installation went well except for the EFI/Legacy boot mode issue
described above.  Once I knew that I had to boot the DVD in Legacy
mode, everything worked.

-- 

Please make sure that the hardware-summary log file, and any other
installation logs that you think would be useful are attached to this
report. Please compress large files using gzip.

Once you have filled out this report, mail it to sub...@bugs.debian.org.

==
Installer lsb-release:
==
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION=Debian GNU/Linux installer
DISTRIB_RELEASE=7.0 (wheezy) - installer build 20121114
X_INSTALLATION_MEDIUM=cdrom

==
Installer hardware-summary:
==
uname -a: Linux wooledg 3.2.0-4-amd64 #1 SMP Debian 3.2.32-1 x86_64 GNU/Linux
lspci -knn: 00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v2/3rd 
Gen Core processor DRAM Controller [8086:0150] (rev 09)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]
lspci -knn: Kernel driver in use: agpgart-intel
lspci -knn: 00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon 
E3-1200 v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]
lspci -knn: 00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 
Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]
lspci -knn: Kernel driver in use: xhci_hcd
lspci -knn: 00:16.0 Communication controller [0780]: Intel Corporation 7 
Series/C210 Series Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]
lspci -knn: 00:16.3 Serial controller [0700]: Intel Corporation 7 Series/C210 
Series Chipset Family KT Controller [8086:1e3d] (rev 04)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]
lspci -knn: Kernel driver in use: serial
lspci -knn: 00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM 
Gigabit Network Connection [8086:1502] (rev 04)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]
lspci -knn: Kernel driver in use: e1000e
lspci -knn: 00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 
Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
lspci -knn: Subsystem: Hewlett-Packard Company Device [103c:3397]