Giter Site home page Giter Site logo

Comments (6)

grazzolini avatar grazzolini commented on May 20, 2024 1

I do like the solution that archiso uses, mixing systemd-networkd + iwd. I think that something in that direction is what we should aim for. Because we already have code for systemd-networkd.

from archinstall.

grazzolini avatar grazzolini commented on May 20, 2024 1

As discussed with grazzolini, we'll copy network configuration from the ISO for now.
And let the users use iwctl to manually configure wifi before starting archinstall (since, archinstall needs to be installed it requires functional internet at first anyway)

This situation will change if archinstall is ever added to the iso. In that case it could be responsible for the network configuration. As things are now, it's fine to have things simple now (copying wifi configuration from the iso) and then move to a more complex solution in the future.

Also, I really don't think archinstall needs to do all the heavy lifting. After all, the idea is to have an installer that incorporates Arch KISS principle. Having the users doing some of the configuration manually is within that spirit.

from archinstall.

Torxed avatar Torxed commented on May 20, 2024

2021-01-25-121343_1096x1182_scrot

Based on a discussion over at IRC, iwctl doesn't have a nice machine readable interface for its output.
They recommend python-dbus and to adopt their python examples using dbus.

from archinstall.

Torxed avatar Torxed commented on May 20, 2024

Appending some nice test code provided by mcon@irc://freenode/#iwd
It's Python bindings for iwd to communicate and monitor events.

ZM3UI.txt

from archinstall.

Torxed avatar Torxed commented on May 20, 2024

As discussed with grazzolini, we'll copy network configuration from the ISO for now.
And let the users use iwctl to manually configure wifi before starting archinstall (since, archinstall needs to be installed it requires functional internet at first anyway)

from archinstall.

Torxed avatar Torxed commented on May 20, 2024

2021-01-25-153513_553x150_scrot

Added the following, the zero-option copies the current network configuration from the ISO (live media).
It first inserts a dummy-option into the list of interfaces:

Which in turn copies two locations from ISO to (by default) /mnt:

  1. Copies PSK files for iwd: https://github.com/Torxed/archinstall/blob/405794d53f1f47e2a19a906dbdfa6ad39ea79c17/archinstall/lib/installer.py#L208
  2. Copies .netdev/.network for systemd: https://github.com/Torxed/archinstall/blob/405794d53f1f47e2a19a906dbdfa6ad39ea79c17/archinstall/lib/installer.py#L216

from archinstall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.