Bug#851620: partman-md: doesn't warn about not being able to embed in the end

2017-01-21 Thread Samuel Thibault
Hello,

Please remember that the submitter is *not* mailed when
n...@bugs.debian.org is mailed.  I just happen to be subscribed to
d-b@...

Roger Lynn, on Sat 21 Jan 2017 21:50:18 +, wrote:
> On 16/01/17 22:00, Samuel Thibault wrote:
> > partman-md doesn't warn when disks to be used for RAID are partitioned
> > with GPT without a bios boot partition for embedding (and I haven't seen
> > documentation about the issue in the installer manual).
> 
> Is this the same problem that was reported in installation-report bug
> #768624 "grub core.img won't fit in the embedding area which is required for
> LVM"?

It doesnt look so: "It won't fit in the embedding area.", I'm not
getting this message: I don't even have an embedding area with the GPT
partition.

Samuel



Bug#851620: partman-md: doesn't warn about not being able to embed in the end

2017-01-21 Thread Roger Lynn
On 16/01/17 22:00, Samuel Thibault wrote:
> partman-md doesn't warn when disks to be used for RAID are partitioned
> with GPT without a bios boot partition for embedding (and I haven't seen
> documentation about the issue in the installer manual).

Is this the same problem that was reported in installation-report bug
#768624 "grub core.img won't fit in the embedding area which is required for
LVM"?

Roger



Bug#851620: partman-md: doesn't warn about not being able to embed in the end

2017-01-16 Thread Lennart Sorensen
On Mon, Jan 16, 2017 at 10:46:44PM +0100, Samuel Thibault wrote:
> Package: partman-md
> Version: 77
> Severity: wishlist
> 
> Hello,
> 
> partman-md doesn't warn when disks to be used for RAID are partitioned
> with GPT without a bios boot partition for embedding (and I haven't seen
> documentation about the issue in the installer manual).

I suspect it might be a case of using gpt when not running in UEFI mode
is not normally done.

Normally people are either running UEFI mode and hence use GPT, or
they are using legacy BIOS and hence stick to DOS MBR partition table.
Given you don't have to go to GPT until your disk is 2TB or larger,
it has been OK for most people on legacy systems.

Of course since lilo is also a boot loader option in the installer,
one could argue whether there ought to be grub specific checks in the
partitioning tool.  I believe the warning you saw only came when the
grub install part did its checks much later, which is of course when
the grub code would be run.  Yes that's certainly a bit late given you
have to go back and do it all again if you want to use grub.

-- 
Len Sorensen



Bug#851620: partman-md: doesn't warn about not being able to embed in the end

2017-01-16 Thread Samuel Thibault
Package: partman-md
Version: 77
Severity: wishlist

Hello,

partman-md doesn't warn when disks to be used for RAID are partitioned
with GPT without a bios boot partition for embedding (and I haven't seen
documentation about the issue in the installer manual).

To reproduce:

dd < /dev/zero > disk1 bs=1M count=1 seek=3000
/sbin/fdisk disk1
g
w
dd < /dev/zero > disk2 bs=1M count=1 seek=3000
/sbin/fdisk disk2
g
w
kvm -drive file=disk1 -drive file=disk2 -m 1G -cdrom 
debian-stretch-DI-rc1-amd64-netinst.iso -boot d

at partitioning step:

- request manual partitioning
- configure software RAID
- keep current partition layout
- create MD device, e.g. RAID1, with the two disks
- write the changes
- finish RAID menu
- set up / partition on the MD device
- install Debian with default options
- let it install grub on sda

This brings an error. syslog shows:

this GPT partition label contains no BIOS Boot Partition: embedding won't be 
possible
grub-install: error:
embedding is not possible, but this is required for RAID and LVM install

That's a bit late for noticing thig. Perhaps this should just be
documented in the manual, but the installer could also warn e.g. at the
"keep current partition layout" stage above that there is no device
which has some place to embed boot (but let the user discard it in case
that's on purpose).

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Samuel
N: beep beep Miam miam? 
y: ++
a: kill -MIAM -1
 -+- #runtime < /dev/miam -+-