Merge lp:~vorlon/goget-ubuntu-touch/uefi into lp:goget-ubuntu-touch
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Sergio Schvezov on 2015-05-01 | ||||
| Approved revision: | 168 | ||||
| Merged at revision: | 172 | ||||
| Proposed branch: | lp:~vorlon/goget-ubuntu-touch/uefi | ||||
| Merge into: | lp:goget-ubuntu-touch | ||||
| Diff against target: |
109 lines (+47/-7) 2 files modified
diskimage/core_grub.go (+45/-5) ubuntu-device-flash/core.go (+2/-2) |
||||
| To merge this branch: | bzr merge lp:~vorlon/goget-ubuntu-touch/uefi | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sergio Schvezov | 2015-04-20 | Approve on 2015-05-01 | |
|
Review via email:
|
|||
Commit Message
UEFI support for ubuntu-
Description of the Change
This is a preliminary MP for adding UEFI support to ubuntu-
It's not ready for merging, because the handling needs to be conditional by
architecture.
| Sergio Schvezov (sergiusens) wrote : | # |
| Steve Langasek (vorlon) wrote : | # |
Now uses oem.Architecture() support from trunk, so I think this is ready for review.
Before merging we should verify whether writing of grub_env works from EFI, without which the a/b failover support won't work correctly.
| Steve Langasek (vorlon) wrote : | # |
I've just done a quick test setting a grub_env variable under EFI GRUB, and it appears to work fine.
| Sergio Schvezov (sergiusens) wrote : | # |
This looks good, but can you apply this please?
$ gofmt -d diskimage/
diff diskimage/
--- /tmp/gofmt586008706 2015-04-27 08:53:38.737751816 +0200
+++ /tmp/gofmt636166137 2015-04-27 08:53:38.737751816 +0200
@@ -342,7 +342,7 @@
return fmt.Errorf(
}
- if (arch == "amd64" || arch == "i386") {
+ if arch == "amd64" || arch == "i386" {
// install grub BIOS support
if out, err := exec.Command(
return fmt.Errorf("unable to install grub (BIOS): %s", out)
@@ -350,7 +350,7 @@
}
// install grub EFI
- if out, err := exec.Command(
+ if out, err := exec.Command(
return fmt.Errorf("unable to install grub (EFI): %s", out)
}
// tell our EFI grub where to find its full config
@@ -364,7 +364,6 @@
return err
}
-
// ensure we run not into recordfail issue
grubDir := filepath.
if err := os.MkdirAll(
- 168. By Steve Langasek on 2015-04-27
-
formatting/style changes per Sergio

make func NewCoreGrubImag e(location string, size int64) *CoreGrubImage {
look like the u-boot one
func NewCoreUBootIma ge(location string, size int64, hw HardwareDescrip tion, oem OemDescription) *CoreUBootImage {
and keep the oem (and hw) entries as members of the struct, then,
oem.Architecture() returns the arch