Flasher - a template for flashing coreboot

This commit is contained in:
unman 2021-02-03 01:05:24 +00:00
parent bb657bde05
commit 8be15c04f9
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
6 changed files with 101 additions and 0 deletions

9
flasher/clone.sls Normal file
View File

@ -0,0 +1,9 @@
include:
- template-debian-10-minimal
qvm-clone-id:
qvm.clone:
- require:
- sls: template-debian-10-minimal
- name: template-flasher
- source: debian-10-minimal

4
flasher/clone.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- flasher.clone

23
flasher/create.sls Normal file
View File

@ -0,0 +1,23 @@
include:
- flasher.clone
qvm-present-id:
qvm.present:
- name: flasher
- template: template-flasher
- label: gray
qvm-prefs-id:
qvm.prefs:
- name: flasher
- netvm: tor
- memory: 400
- maxmem: 2000
- vcpus: 2
qvm-features-id:
qvm.features:
- name: flasher
- disable:
- service.cups
- service.cups-browsed

4
flasher/create.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- flasher.create

56
flasher/install.sls Normal file
View File

@ -0,0 +1,56 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
/etc/apt/sources.list:
file.replace:
- pattern: 'https:'
- repl: 'http://HTTPS/'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
/etc/apt/sources.list.d/qubes-r4.list:
file.replace:
- pattern: 'https:'
- repl: 'http://HTTPS/'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
allow-testing:
file.uncomment:
- name: /etc/apt/sources.list.d/qubes-r4.list
- regex: ^deb\s.*qubes-os.org.*-testing
- backup: false
installed:
pkg.installed:
- pkgs:
- qubes-core-agent-networking
- qubes-gpg-split
- qubes-usb-proxy
- automake-1.15
- autopoint
- bc
- bison
- build-essential
- curl
- fcode-utils
- flashrom
- flex
- genisoimage
- gettext
- git
- gitg
- gnat
- gnupg
- grub-common
- libelf-dev
- libfreetype6
- libfreetype6-dev
- libncurses-dev
- libpci-dev
- libssl-dev
- libusb-1.0-0-dev
- m4
- mtools
- pkg-config
- qt5-qmake
- unifont
- wget
- zlib1g-dev

5
flasher/install.top Normal file
View File

@ -0,0 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
template-flasher:
- flasher.install