15 Commits (28bb47001914fbfa221c87ac6f3534b22e3ce317)
 

Author SHA1 Message Date
LEdoian 28bb470019 Fix ownership of generated disk images 3 years ago
LEdoian ac5850d95e Add gen_disks.sh script to modify virtual drives
We expect the repo root to contain pre-installed Alpine 3.15.4 in raw
drive file 'dummydisk.img'. This then gets copied to
output/<machine>/disk.img and the generated files are put into it in
order to be used.

Beware, this uses hardcoded paths and expects specific disk layout.
This relies on how the installation formatted the disk. While the
installation procedure is not documented anywhere, it is in essence
default setup of Alpine Linux, with minimal tweaks that should not
affect behaviour of routing (but still impede reproducibility). The only
major difference from default settings is BIRD being pre-installed.

Unfortunately, using loop devices and mounting requires root privileges
(as far as I know). It should be possible to use some other way, but
this is the simplest I know at the moment.
3 years ago
LEdoian a1a73c8cd5 Generate bridge.conf instead of just list of bridges
QEMU's bridge.conf is now directly usable, yet really easy to both
generate and parse, should that be needed in the future.

This partially breaks layers of abstraction, but the point of the script
is to make setup easy, not to be an example of clean code :-)
3 years ago
LEdoian 26f1299b59 Generate also hosts and hostname files 3 years ago
LEdoian 2fe2640e9e Fix alignment of templated files
Jinja directives keep indentation. Therefore, if tokens like
`{% for … %}` are indented, the indentation accumulates and this creates
confusing indentation in output.
3 years ago
LEdoian f05472259f Fix Jinja stripping newlines at EOF 3 years ago
LEdoian 1247948259 Make qemu.sh executable 3 years ago
LEdoian dc95ade8a0 Fix MAC in qemu script 3 years ago
LEdoian 75bbce24c5 Diag: Mark gateway as machine X 3 years ago
LEdoian c0f9174ab6 Add initial version of template files 3 years ago
LEdoian 82905c2b20 Few fixes of the main script 3 years ago
LEdoian 37d55b8e3b Add note about router ids 3 years ago
LEdoian 314170744e Tweak the generator 3 years ago
LEdoian c926f36c8b Add gitignore 3 years ago
LEdoian c098d3ceb3 Init 3 years ago