autopartitioning clears automatic mount points

Bug #27820 reported by Arthur Peters
Affects Status Importance Assigned to Milestone
partman-auto (Ubuntu)

Bug Description

The first window in partitioning disks offers "Resize /dev/hda/part3 and use
freed space". I choose that. It created the needed partitions, but did not
automatically give previously existing partitions mount points. However if I
choose manual partitioning the previously existing partitions are corrently
given mount points. Maybe a function is not being called in the auto partitioner.

Revision history for this message
Arthur Peters (amp) wrote :

I forgot: This is with dapper flight 2.

Revision history for this message
Colin Watson (cjwatson) wrote :

I diagnosed this for myself a while ago, but haven't got round to fixing it yet.
For my reference:

  * Diagnosed why partition automounting isn't working in the
    auto-resize case (method and acting_filesystem files not copied over
    to the new partman device directory). Not yet sure why or how to fix

Revision history for this message
Colin Watson (cjwatson) wrote :

Further diagnosis:

<Kamion> mdz: when partman does autopartitioning, it clears out all the old state that you selected in the manual partitioner, to avoid serious complications if they overlap in weird ways (e.g. two mountpoints the same)
<Kamion> mdz: unfortunately that includes the preset /media/* mount points
<Kamion> mdz: the fix is to just do the automounting again after applying the autopartitioning recipe, but I either have to duplicate a big wodge of code, or move it to somewhere common
<Kamion> probably move it to an update.d script protected by an "only run once" flag that we clear out on autopartitioning

If I'd got round to diagnosing this a couple of weeks ago, I'd probably have attempted to fix it for Dapper, but unfortunately my queue was just too long. It'll have to wait until Edgy now, but at least I now know pretty much exactly what to do.

Colin Watson (cjwatson)
Changed in partman-auto:
status: Unconfirmed → Confirmed
Colin Watson (cjwatson)
Changed in partman-auto:
assignee: kamion → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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