[18.04] You need at least 8.4 GB ... This computer has only 0.0 B.

Bug #1747228 reported by TJ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

Testing the bionic daily desktop amd64 ISO for 2018-02-02 in a QEMU guest allocated 8GB via an LV, started in EFI mode and using "Try Ubuntu" mode, when Ubiquity was started it reported:

You need at least 8.4 GB disk space to install Ubuntu.

This computer has only 0.0 B.

I checked the LV was correctly connected:

cat /sys/block/sda/size
16777216

I then expanded the LV to 16GB and re-ran the exercise and got the same message.

cat /sys/block/sda/size
33554432

I did some hunting through the source code and discovered that when the prepare step calls ...

/bin/parted_devices

... nothing is returned.

I ran strace on that command.

It turns out if the device is *read-only* nothing is returned.

Ubiquity really should report something more appropriate. Currently the 0.0 message is due to the variable 'free' being initialised to 0 and not being changed because parted_devices doesn't return any data. No results should provoke a helpful GUI message, and certainly something in the debug log.

Tags: bionic
TJ (tj)
description: updated
TJ (tj)
summary: - [18.04] You need at least 8.4 GB ... This computer only has 0.0 B.
+ [18.04] You need at least 8.4 GB ... This computer has only 0.0 B.
description: updated
TJ (tj)
description: updated
tags: added: bionic
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.