defining tmpfs /tmp in autoinstall config fails

Bug #1933711 reported by Todd Taft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Attempting to creat a tmpfs /tmp partition with the Ubuntu 20.04 autoinstaller fails with the error: __init__() missing 1 required positional argument: 'device'

The relevant section of the user-data file I'm attempting is:
    - id: tmpfs1
      type: mount
      spec: "none"
      path: "/tmp"
      options: size=4194304
      fstype: "tmpfs"

This section is copied directly from https://curtin.readthedocs.io/en/latest/topics/storage.html (changing the path).
The full file is attached.

Autoinstall succeeds if all of the lines listed above are deleted.

I'm using the daily ISO autoinstall image downloaded using the script at https://github.com/covertsh/ubuntu-autoinstall-generator .

Revision history for this message
Todd Taft (taft) wrote :
Revision history for this message
Todd Taft (taft) wrote :
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ah yeah this makes sense. Should be easy to fix.

Changed in subiquity (Ubuntu):
status: New → Triaged
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

So https://github.com/canonical/subiquity/pull/993 should fix this. I've built this PR into a snap and pushed it to the edge/pr-993 channel so if you add this to your autoinstall.yaml:

refresh-installer:
   update: yes
   channel: "edge/pr-993"

it should work now. (If your install is offline, you should be able to use https://github.com/mwhudson/livefs-editor to stuff the new snap into an ISO).

Revision history for this message
Todd Taft (taft) wrote :

The proposed fix works for me, both in the both in the simple example I posted, as well as a more complex configuration that I didn't post.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Glad to hear it. The fix should be in the edge channel by now, or pretty soon at least.

Changed in subiquity (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

And thanks for reporting back!

Changed in subiquity (Ubuntu):
status: Fix Committed → Fix Released
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.