reset-partition-only: true doesn't create a big enough reset partition

Bug #2061042 reported by Chris Peterson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Committed
Low
Chris Peterson

Bug Description

In autoinstall, we can provide the following snippet to install the Reset Partition without installing the system:

autoinstall:
  storage:
    layout:
      name: direct
      reset-partition: true
      reset-partition-only: true

This is supposed to cause Subiquity to create a reset partition that is 1.1x the size of the installation media, but the installation fails with:

ubuntu-server subiquity_log.1565[2415]: rsync: [receiver] write failed on "/factory-reset/EFI/boot/bootx64.efi": No space left on device (28)

I've tracked this down to an autoinstall parsing error, where "reset-parition: true" is interpreting the boolean "True" value for a reset-partition of size 1:

subiquity.server.controllers.filesystem:1463 autoinstall: will install reset partition of size 1

The installation proceeds fine when specifying the reset-partition size e.g.:
autoinstall:
  storage:
    layout:
      name: direct
      reset-partition: 6G
      reset-partition-only: true

Revision history for this message
Chris Peterson (cpete) wrote :
information type: Private → Public
description: updated
Chris Peterson (cpete)
Changed in subiquity:
status: Triaged → In Progress
Chris Peterson (cpete)
tags: added: foundations-todo
Revision history for this message
Chris Peterson (cpete) wrote :
Chris Peterson (cpete)
Changed in subiquity:
importance: Medium → Low
description: updated
Changed in subiquity:
assignee: nobody → Chris Peterson (cpete)
Chris Peterson (cpete)
Changed in subiquity:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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