~ondrak/goget-ubuntu-touch/new-adb

« back to all changes in this revision

Viewing changes to diskimage/core_grub.go

  • Committer: Snappy Tarmac
  • Author(s): Michael Vogt
  • Date: 2015-11-12 16:51:58 UTC
  • mfrom: (214.2.4 timchen)
  • Revision ID: snappy_tarmac-20151112165158-70p8r10jrsba7vl0
Increase the size of the boot partition and also create fw/ directory under the efi directory. by mvo approved by mvo,sergiusens

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        }
75
75
 
76
76
        parted.addPart(grubLabel, "", fsNone, 4)
77
 
        parted.addPart(bootLabel, bootDir, fsFat32, 64)
 
77
        parted.addPart(bootLabel, bootDir, fsFat32, 128)
78
78
        parted.addPart(systemALabel, systemADir, fsExt4, img.rootSize)
79
79
        parted.addPart(systemBLabel, systemBDir, fsExt4, img.rootSize)
80
80
        parted.addPart(writableLabel, writableDir, fsExt4, -1)
150
150
                return fmt.Errorf("unable to create %s dir: %s", efiGrubDir, err)
151
151
        }
152
152
 
 
153
        // create fw update directory
 
154
        fwDir := filepath.Join(img.System(), "boot", "efi", "EFI", "ubuntu", "fw")
 
155
        if err := os.MkdirAll(fwDir, 0755); err != nil {
 
156
                return fmt.Errorf("unable to create %s dir: %s", fwDir, err)
 
157
        }
 
158
 
153
159
        bootGrubDir := filepath.Join(img.System(), "boot", "grub")
154
160
        if err := bindMount(efiGrubDir, bootGrubDir); err != nil {
155
161
                return err