Commit 5fb833a0 authored by Colin Watson's avatar Colin Watson

* Merge from Ubuntu:

  - When creating a new partition, default to logical if a primary
    partition already exists, since there are stricter constraints on
    primary partitions and the only real reasons for them are Microsoft
    operating systems or boot partitions (LP: #218938).

r61053
parent 8f6706c5
partman-partitioning (73) UNRELEASED; urgency=low
* Merge from Ubuntu:
- When creating a new partition, default to logical if a primary
partition already exists, since there are stricter constraints on
primary partitions and the only real reasons for them are Microsoft
operating systems or boot partitions (LP: #218938).
-- Colin Watson <cjwatson@debian.org> Mon, 26 Oct 2009 17:19:34 +0000
partman-partitioning (72) unstable; urgency=low
[ Updated translations ]
......
......@@ -68,10 +68,13 @@ ask_for_size () {
ask_for_type () {
local noninteractive has_extended parttype
has_primary=no
has_extended=no
open_dialog PARTITIONS
while { read_line x1 x2 x3 parttype x5 x6 x7; [ "$parttype" ]; }; do
if [ "$parttype" = logical ]; then
if [ "$parttype" = primary ]; then
has_primary=yes
elif [ "$parttype" = logical ]; then
has_extended=yes
fi
done
......@@ -89,7 +92,7 @@ ask_for_type () {
type=Logical
;;
pri/log)
if [ "$has_extended" = yes ]; then
if [ "$has_primary" = yes ] || [ "$has_extended" = yes ]; then
db_set partman-partitioning/new_partition_type Logical
else
db_set partman-partitioning/new_partition_type Primary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment