debian-forge/stages/test
Michael Vogt 2116803e32 stages(kickstart): add validation for device
This adds basic validation for the network `device` in the kickstart
stage. There are multiple ways that a `device` can written, see
https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#network
for details.

When written as device name then this is checked by the kernel in
https://elixir.bootlin.com/linux/v6.6.1/source/net/core/dev.c#L1038
and it's very free from. Our validation is stricter, if this becomes
a problem we can relax it more.

When written as a mac address the pattern will ensure it's written
in exactly this way.
2023-11-27 15:10:29 +01:00
..
test_kickstart.py stages(kickstart): add validation for device 2023-11-27 15:10:29 +01:00
test_ostree_post_copy.py stages(ostree.post-copy): add stage unit test and comment 2023-11-27 13:39:20 +01:00