Re: Network setup by installer
On Fri 19 Jan 2018 at 22:10:39 +0900, Mark Fletcher wrote:
> On Fri, Jan 19, 2018 at 06:43:10AM +0100, john doe wrote:
> >
> > It is unclear to me why you can't configure the wireless interface using ssh
> > through the wired interface?
>
> Thanks for replying. I am not sure what problem you are trying to solve,
> but I am not sure how your suggestion relates to the problem I laid out
> in my original post. Apologies if I am misunderstanding you. I'm not
> trying to work around the fact that the wireless connection doesn't come
> up until login, but to fix it so that it does.
>
> I want to set up my wireless via the same mechanism that the installer
> set up my wired ethernet so that wireless comes up automatically at
> boot.
>
> So, I return to the essential question, which I led with in my original
> post, which is which method does the installer use to set up networking,
> and where can I find documentation on that so I can replicate it for my
> wireless connection?
The installer uses the netcfg udeb to configure networking; the files in
the package are the documentation (AFAIK). For a wired connection netcfg
produces a file /etc/network/interfaces for use with the installer which
is something like
allow-hotplug enp0s25
iface enp0s25 inet dhcp
This file is transferred to the new system (mounted on /target) just
before d-i finishes and booting into the new system takes place.
If you had chosen to install over a wifi connection, interfaces would
have looked like this:
allow-hotplug wlx0060b3f580c4
iface wlx0060b3f580c4 inet dhcp
wpa-ssid <access_point>
wpa-psk <secret>
I would preseed the installer to replace the interfaces file it puts on
/target with this file. Any firmware for the wireless adaptor would also
have to be transferred to /target/lib/firmware too.
A fly in the ointment is the desktop you install (if any). If it brings
in network-manager (MATE does) there is a possibility that there is no
network at first boot.
--
Brian.
Reply to: