Installer fails when preseeding 'partman-partitioning/confirm_resize'

Bug #1275740 reported by Wright
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
partman-auto (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,

I'm doing a preseed with the following value :
...
d-i partman-auto/init_automatically_partition select resize_use_free
d-i partman-partitionning/confirm_resize boolean true
...

When setting confirm_resize to 'true', installer begins an infinite loop. I think it's because of the following code (see more in /lib/partman/automatically_partition/10resize_use_free or in the attachment) :

=== modified file 'automatically_partition/resize_use_free/do_option'
db_set partman-partitioning/confirm_resize 'false'

This has been introduced to fix #LP 52830, https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/52830).

Thank you

Revision history for this message
Wright (wright-gagelac) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "475_474.diff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Wright (wright-gagelac)
tags: removed: patch
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

I can't force ubiquity to automatically resize existing partitions even when I write this line in preseed file:
d-i partman-auto/init_automatically_partition select resize_use_free

Could you attach your preseed file when installer resizes existing partition instead of creating new ones?

Wright (wright-gagelac) wrote:
> I'm doing a preseed with the following value :
> ...
> d-i partman-auto/init_automatically_partition select resize_use_free
> d-i partman-partitionning/confirm_resize boolean true
> ...
>
> When setting confirm_resize to 'true', installer begins an infinite loop.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in partman-auto (Ubuntu):
status: New → Confirmed
Revision history for this message
Dakota Ryan Lambert (drlamb) wrote :

I'm currently attempting to dualboot Ubuntu 18.10 with Windows 10 using a preseed. The windows environment is loaded via task sequence and leaves 50% of the disk as a blank partition (partition 4). I'm then attempting to take that partition, delete/resize it, and install Ubuntu according to my encrypted lvm partition map. Upon setting:

d-i partman-partitionning/confirm_resize boolean true
d-i partman-auto/disk string /dev/nvme0n1p4
d-i partman-auto/automatically_partition string Guided - resize /dev/nvme0n1p4 and use freed space
d-i partman-auto/method string crypto

I experience the aforementioned loop.

Other solutions attempted:

I'm also playing with the idea of having the 4th partition be just empty space but upon setting
d-i partman-auto/init_automatically_partition select biggest_free

d-i partman-auto/method string crypto is ignored so while the partitions get created according to my recipe, they don't get encrypted.

Revision history for this message
Dakota Ryan Lambert (drlamb) wrote :

For clarification, Ubuntu 18.04 runs into the same issue. Also, there's a typo in the above but the overall message is correct.

d-i partman-auto/automatically_partition *select* Guided - resize /dev/nvme0n1p4 and use freed space

Revision history for this message
Jonathan (vervaeke-jonathan) wrote :

Circumvented this issue by adding: partman-partitioning/new_size

d-i partman-partitioning/confirm_resize true
d-i partman-partitioning/new_size string max

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.