| 1 |
{{- $architecture := or .architecture "i386" -}} |
| 2 |
|
| 3 |
architecture: {{$architecture}} |
| 4 |
|
| 5 |
actions: |
| 6 |
- action: run |
| 7 |
description: Install bootloader |
| 8 |
chroot: true |
| 9 |
command: > |
| 10 |
{{if eq $architecture "i386" "amd64"}} |
| 11 |
update-grub |
| 12 |
&& grub-install /dev/disk/by-id/virtio-fakedisk-0 |
| 13 |
{{end}} |