From 056b800c8eb42c4112dce54bd1a7336d52ead2ab Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 20 Aug 2020 17:08:13 +0000 Subject: Starting to add networking helpers in archinstall. First up is archinstall.getHwAddr(ifname) which returns the mac of a interface name. second is archinstall.list_interfaces() which lists all the local MAC addresses and which interface it is bound to. Also starting to add the unattended installer back step by step. Currently with one MAC profile. The MAC profile filtering/detection has also been added in archinstall.list_profiles() - it will filter out all MAC address-specific profiles when called, unless a MAC matches a profile or filter_irrelevant_macs=False is given. --- examples/unattended.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/unattended.py (limited to 'examples') diff --git a/examples/unattended.py b/examples/unattended.py new file mode 100644 index 00000000..7dfa58c1 --- /dev/null +++ b/examples/unattended.py @@ -0,0 +1,6 @@ +import archinstall + +for profile in archinstall.list_profiles(): + # Tailored means it's a match for this machine. + if profile['tailored']: + print('Selecting profile to be installed:', profile) \ No newline at end of file -- cgit v1.2.3-54-g00ecf