Skip to content

Commit

Permalink
Add uefi arm64 support
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Short <[email protected]>
  • Loading branch information
Charles Short committed Mar 27, 2024
1 parent a3f1331 commit 1d6b0f9
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 0 deletions.
34 changes: 34 additions & 0 deletions config/uefi-arm64-image/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: pablo-uefi-arm64
description: "AMD64 example configuration."
architecture: arm64
version: 0.1
schemaVersion: 1
params:
version: ${version}
tarball: pablo-rootfs-${version}-${architecture}.tar.gz
phases:
- name: "Creating tarball."
stage: bootstrap
options:
suite: bookworm
target: ${params.tarball}
architecture: ${architecture}
setup_hooks:
- 'sync-in overlay/debian/ /'
customize_hooks:
- echo 'root:root' | chroot "$1" chpasswd
- systemctl enable --root="$1" systemd-networkd
- chroot $1 echo "localhost" > $1/etc/hostname
packages: !include manifests/software.yaml
- name: "Creating image"
stage: repart
options:
image: pablo-image-${version}-${architecture}.img
size: 20G
definitions: partitions
- name: "Unpack tarball"
stage: deploy
options:
source: pablo-rootfs-${version}-${architecture}.tar.gz
target: pablo-image-${version}-${architecture}.img
16 changes: 16 additions & 0 deletions config/uefi-arm64-image/manifests/software.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- grub-efi-arm64
- linux-image-arm64
- ca-certificates
- vim
- sudo
- net-tools
- openssh-client
- openssh-server
- procps
- less
- dbus
- policykit-1
- curl
- wget
- ca-certificates
3 changes: 3 additions & 0 deletions config/uefi-arm64-image/overlay/debian/etc/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# <file system> <dir> <type> <options> <makeimg args>
LABEL=EFI /efi vfat umask=077 0 1
LABEL=ROOT / ext4 defaults 0 0
1 change: 1 addition & 0 deletions config/uefi-arm64-image/overlay/debian/etc/hostname
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
1 change: 1 addition & 0 deletions config/uefi-arm64-image/overlay/debian/etc/resolv.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nameserver 8.8.8.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Match]
Name=en*

[Network]
DHCP=yes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Match]
Name=e*
KernelCommandLine=!nfsroot

[Network]
DHCP=yes
6 changes: 6 additions & 0 deletions config/uefi-arm64-image/partitions/10-efi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Partition]
Type=esp
Format=vfat
Label=EFI
SizeMinBytes=500M
SizeMaxBytes=500M
5 changes: 5 additions & 0 deletions config/uefi-arm64-image/partitions/50-root.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Partition]
Type=root
Label=ROOT
Format=ext4
FactoryReset=yes

0 comments on commit 1d6b0f9

Please sign in to comment.