Skip to content

Commit

Permalink
fix: image format output
Browse files Browse the repository at this point in the history
Use the correct image output format.
Fixes the artifacts path.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Mar 15, 2024
1 parent 144f1e0 commit 36837ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions installers/rockpi4/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (i *rockPi4) Install(options overlay.InstallOptions[rockPi4ExtraOptions]) e

defer f.Close() //nolint:errcheck

uboot, err := os.ReadFile(filepath.Join(options.ArtifactsPath, "artifacts/arm64/u-boot/rockpi4/u-boot-rockchip.bin"))
uboot, err := os.ReadFile(filepath.Join(options.ArtifactsPath, "arm64/u-boot/rockpi4/u-boot-rockchip.bin"))
if err != nil {
return err
}
Expand All @@ -73,7 +73,7 @@ func (i *rockPi4) Install(options overlay.InstallOptions[rockPi4ExtraOptions]) e
return err
}

src := filepath.Join(options.ArtifactsPath, "artifacts/arm64/dtb", dtb)
src := filepath.Join(options.ArtifactsPath, "arm64/dtb", dtb)
dst := filepath.Join(options.MountPrefix, "/boot/EFI/dtb", dtb)

err = os.MkdirAll(filepath.Dir(dst), 0o600)
Expand Down
4 changes: 2 additions & 2 deletions installers/rockpi4c/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (i *rockPi4) Install(options overlay.InstallOptions[rockPi4ExtraOptions]) e

defer f.Close() //nolint:errcheck

uboot, err := os.ReadFile(filepath.Join(options.ArtifactsPath, "artifacts/arm64/u-boot/rockpi4/u-boot-rockchip.bin"))
uboot, err := os.ReadFile(filepath.Join(options.ArtifactsPath, "arm64/u-boot/rockpi4/u-boot-rockchip.bin"))
if err != nil {
return err
}
Expand All @@ -72,7 +72,7 @@ func (i *rockPi4) Install(options overlay.InstallOptions[rockPi4ExtraOptions]) e
return err
}

src := filepath.Join(options.ArtifactsPath, "artifacts/arm64/dtb", dtb)
src := filepath.Join(options.ArtifactsPath, "arm64/dtb", dtb)
dst := filepath.Join(options.MountPrefix, "/boot/EFI/dtb", dtb)

err = os.MkdirAll(filepath.Dir(dst), 0o600)
Expand Down
2 changes: 1 addition & 1 deletion profiles/rockpi4/rockpi4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platform: metal
secureboot: false
output:
kind: image
outFormat: xz
outFormat: .xz
imageOptions:
diskSize: 1306525696
diskFormat: raw
2 changes: 1 addition & 1 deletion profiles/rockpi4c/rockpi4c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platform: metal
secureboot: false
output:
kind: image
outFormat: xz
outFormat: .xz
imageOptions:
diskSize: 1306525696
diskFormat: raw

0 comments on commit 36837ec

Please sign in to comment.