Curtin fails to install Precise in UEFI mode - Unexpected error while running ['mkfs.fat', '-F', '32', '-n', 'efi', '/dev/sda1'] No such file or directory

Bug #1539720 reported by Larry Michel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Medium
Unassigned

Bug Description

Trying to deploy Precise on a server in UEFI mode and it fails because curtin is looking for sda1 and there's not a sda1. There is a sda-part1 however.

mdadm: No arrays found in config file or automatically
Creating new GPT entries.
The operation has completed successfully.
mdadm: No arrays found in config file or automatically
The operation has completed successfully.
The operation has completed successfully.
An error occured handling 'sda-part1_format': ProcessExecutionError - Unexpected error while running command.
Command: ['mkfs.fat', '-F', '32', '-n', 'efi', '/dev/sda1']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['mkfs.fat', '-F', '32', '-n', 'efi', '/dev/sda1']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: "mdadm: No arrays found in config file or automatically\nCreating new GPT entries.\nThe operation has completed successfully.\nmdadm: No arrays found in config file or automatically\nThe operation has completed successfully.\nThe operation has completed successfully.\nAn error occured handling 'sda-part1_format': ProcessExecutionError - Unexpected error while running command.\nCommand: ['mkfs.fat', '-F', '32', '-n', 'efi', '/dev/sda1']\nExit code: -\nReason: [Errno 2] No such file or directory\nStdout: ''\nStderr: ''\nUnexpected error while running command.\nCommand: ['mkfs.fat', '-F', '32', '-n', 'efi', '/dev/sda1']\nExit code: -\nReason: [Errno 2] No such file or directory\nStdout: ''\nStderr: ''\n"
Stderr: ''

File systems

NameSizeMountpointFile system
sda-part1 536.9 MB /boot/efi fat32
sda-part2 298.5 GB / ext4
Available disks and partitions

Name Model Serial BootSizeDevice TypeFile systemTags
 899.0 GB Physical rotary
Used disks and partitions

Name Model Serial BootDevice typeUsed for
sda Physical GPT partitioned with 2 partitions
sda-part1 Partition fat32 formatted filesystem mounted at /boot/efi
sda-part2 Partition ext4 formatted filesystem mounted at /

Related bugs:
 * bug 1541077: curtin needs to support amd64 efi and precise

Tags: oil

Related branches

Revision history for this message
Larry Michel (lmic) wrote :

Those are maas/curtin versions: 1.9.0+bzr4533-0ubuntu1~trusty1 and 0.1.0~bzr314-0ubuntu1

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Curtin bug!

Changed in maas:
status: New → Invalid
Revision history for this message
Scott Moser (smoser) wrote :

dosfstools on precise does not provide mkfs.fat, only mkfs.vfat.
precise:
$ ls -l /sbin/mkfs.*fat
lrwxrwxrwx 1 root root 7 May 1 2015 /sbin/mkfs.vfat -> mkdosfs

$ dpkg-query --show dosfstools
dosfstools 3.0.12-1ubuntu1.2

trusty
$ ls -l /sbin/mkfs.*fat
-rwxr-xr-x 1 root root 27608 Mar 18 2014 /sbin/mkfs.fat
lrwxrwxrwx 1 root root 8 Mar 18 2014 /sbin/mkfs.vfat -> mkfs.fat
$ dpkg-query --show dosfstools
dosfstools 3.0.26-1

Scott Moser (smoser)
Changed in curtin:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

This was fixed in revision 347.
revision 351 is available in xenial, maas/proposed and maas/next-proposed

Changed in curtin:
status: Confirmed → Fix Committed
Scott Moser (smoser)
description: updated
no longer affects: maas
Revision history for this message
Larry Michel (lmic) wrote :

I am able to recreate it with version 351 although it seems to be past the partition part. Now it's failing to mount sda1.

Creating new GPT entries.
The operation has completed successfully.
The operation has completed successfully.
The operation has completed successfully.
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so

An error occured handling 'sda-part1_mount': ProcessExecutionError - Unexpected error while running command.
Command: ['mount', '/dev/sda1', '/tmp/tmpLqOIKd/target/boot/efi']
Exit code: 32
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['mount', '/dev/sda1', '/tmp/tmpLqOIKd/target/boot/efi']
Exit code: 32
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: "Creating new GPT entries.\nThe operation has completed successfully.\nThe operation has completed successfully.\nThe operation has completed successfully.\nmount: wrong fs type, bad option, bad superblock on /dev/sda1,\n missing codepage or helper program, or other error\n In some cases useful info is found in syslog - try\n dmesg | tail or so\n\nAn error occured handling 'sda-part1_mount': ProcessExecutionError - Unexpected error while running command.\nCommand: ['mount', '/dev/sda1', '/tmp/tmpLqOIKd/target/boot/efi']\nExit code: 32\nReason: -\nStdout: ''\nStderr: ''\nUnexpected error while running command.\nCommand: ['mount', '/dev/sda1', '/tmp/tmpLqOIKd/target/boot/efi']\nExit code: 32\nReason: -\nStdout: ''\nStderr: ''\n"

$ dpkg -l|grep curtin
ii curtin 0.1.0~bzr351-0ubuntu1 all Library and tools for the curtin installer
ii curtin-common 0.1.0~bzr351-0ubuntu1 all Library and tools for curtin installer
ii python-curtin 0.1.0~bzr351-0ubuntu1 all Library and tools for curtin installer
ii python3-curtin 0.1.0~bzr351-0ubuntu1 all Library and tools for curtin installer

Revision history for this message
Scott Moser (smoser) wrote : Fixed in Curtin 17.1

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
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.