Add grub-install firsttime script for aarch64 (efi)

This commit is contained in:
Mikhail Gordeev 2022-06-02 18:59:05 +03:00
parent 5274628a32
commit 7c75d3b2b5

View File

@ -45,6 +45,8 @@ images:
rename: rename:
regex: '(.*)\.qcow2c$' regex: '(.*)\.qcow2c$'
to: '\1.qcow2' to: '\1.qcow2'
scripts:
- grub_install
workstation-cloud: workstation-cloud:
target: vm/alt-workstation-cloud target: vm/alt-workstation-cloud
kinds: kinds:
@ -57,6 +59,8 @@ images:
rename: rename:
regex: '(.*)\.qcow2c$' regex: '(.*)\.qcow2c$'
to: '\1.qcow2' to: '\1.qcow2'
scripts:
- grub_install
branches: branches:
Sisyphus: Sisyphus:
@ -73,6 +77,18 @@ branches:
branding: alt-starterkit branding: alt-starterkit
scripts: scripts:
grub_install:
contents: |
#!/bin/sh
mkdir -p /etc/firsttime.d
touch /etc/firsttime.d/grub-install
chmod +x /etc/firsttime.d/grub-install
echo '#!/bin/sh -eu' >> /etc/firsttime.d/grub-install
echo >> /etc/firsttime.d/grub-install
echo grub-install >> /etc/firsttime.d/grub-install
global: no
number: 80
securetty: securetty:
contents: | contents: |
#!/bin/sh #!/bin/sh