~ubuntu-branches/ubuntu/saucy/partman-efi/saucy

« back to all changes in this revision

Viewing changes to commit.d/format_efi

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-01-18 18:51:51 UTC
  • Revision ID: package-import@ubuntu.com-20130118185151-7k4kgursosdgfx3a
Tags: 25ubuntu3
Use mkdosfs to create FAT filesystems, since libparted cannot handle
doing that on non-512-sector disks (LP: #1065281).

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                        db_subst $template TYPE "$RET"
54
54
                        db_subst $template PARTITION "$num"
55
55
                        db_subst $template DEVICE $(humandev $(cat device))
56
 
                        name_progress_bar $template
57
 
                        open_dialog CREATE_FILE_SYSTEM $id $new_efi_fs
58
 
                        read_line status
59
 
                        close_dialog
60
 
                        sync
 
56
                        db_progress START 0 3 partman/text/formatting
 
57
                        db_progress INFO $template
 
58
                        db_progress SET 1
 
59
                        log_sector_size="$(blockdev --getss "$(cat device)")"
 
60
                        if log-output -t partman --pass-stdout \
 
61
                           mkdosfs -F "${new_efi_fs#fat}" \
 
62
                                   -S "$log_sector_size" \
 
63
                                   "$device" >/dev/null; then
 
64
                                sync
 
65
                                status=OK
 
66
                        else
 
67
                                status=failed
 
68
                        fi
 
69
                        db_progress STOP
61
70
 
62
71
                        if [ "$status" != OK ]; then
63
72
                                db_subst partman-basicfilesystems/create_failed TYPE efi