You are not logged in.

#1 2019-09-21 08:09:42

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Early networking from initramfs

Can see from wiki:

https://wiki.archlinux.org/index.php/Mk … #Using_net

That it is possible to have a network connection during early boot. Would it be possible to create a wireless connection early too?

My thinking is to get new_root mounted on a remote system...


Mr Green

Offline

#2 2019-09-21 08:47:47

frostschutz
Member
Registered: 2013-11-15
Posts: 1,417

Re: Early networking from initramfs

Anything is possible in initramfs as long as you provide the dependencies (kernel modules, userspace programs, a script to set it all up etc.).

initramfs is a full blown system (if you make it so), there are no other limitations or restrictions.

Basically https://wiki.archlinux.org/index.php/Wi … figuration rolled into a mkinitcpio hook would work just fine.

The only question is whether someone has done it yet or you have to do it yourself...

https://wiki.archlinux.org/index.php/Dm … k_via_wifi https://aur.archlinux.org/packages/mkinitcpio-wifi/ suggests someone might have done it but I haven't tried it myself... good luck.

Last edited by frostschutz (2019-09-21 08:49:55)

Offline

#3 2019-09-21 09:22:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,840
Website

Re: Early networking from initramfs

Just an FYI: you might not want to put too much effort into achieving such a thing with mkinitcpio, since it is going to be replaced with dracut at some point.

https://lists.archlinux.org/pipermail/a … 29570.html
https://lists.archlinux.org/pipermail/a … 46778.html


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2019-09-21 10:28:19

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Early networking from initramfs

Might try this out under a VM, might add those basic instructions to wiki.... Think Void uses dracut.

From mailing list:

> Without looking at dracut yet, I have a few questions:
> - Is there a description how to move from mkinitcpio to dracut?

No, not yet. But it is as simple as running dracut -H -f /boot/initramfs-linux.img, for
trying it out. I'll work later this week on a wiki page, but the good thing is, it has
plenty documentation available.


Mr Green

Offline

#5 2019-09-21 10:51:08

frostschutz
Member
Registered: 2013-11-15
Posts: 1,417

Re: Early networking from initramfs

WorMzy wrote:

at some point.

I'm looking forward to it but until then, (or at least until there's a set date), I'll stick with initcpio all the same.

But yes, you can use a different, or even completely custom kernel and custom initramfs, if it suits you.

Offline

#6 2019-09-21 17:26:28

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Early networking from initramfs

https://pasteboard.co/IysQ0Uq.png

base install ran dracut -H -f <as above> and system stops loading, read manual time ;-)


Mr Green

Offline

#7 2019-09-22 14:54:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Early networking from initramfs

Running dracut with -M gives interesting results.


Mr Green

Offline

Board footer

Powered by FluxBB