FS#73295 - [mkinitcpio-nfs-utils] allow to set dns server for static config

Attached to Project: Arch Linux
Opened by Gerd v. Egidy (gvegidy) - Saturday, 08 January 2022, 12:11 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 18 September 2023, 17:46 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The ipconfig tool contained in mkinitcpio-nfs-utils does not allow you to set a dns server when using static ip configuration. A dns server is only supported for dhcp. When you try to set something like this:

ip=192.168.1.13::192.168.1.1:255.255.255.0:test.local:eth0:none:8.8.8.8

you get "ipconfig: too many options for eth0"

While the ipconfig-source is hosted on https://sources.archlinux.org/other/mkinitcpio/, the actual source seems to come from the linux kernel klibc and can be seen for example here: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/tree/usr/kinit

The current version of ipconfig at klibc supports setting the dns server like in the example above. So updating ipconfig should suffice to add dns server support.

Additional info:
* this is about mkinitcpio-nfs-utils 0.3-7
* originally reported against the Arch-derivate SystemRescue at https://gitlab.com/systemrescue/systemrescue-sources/-/issues/243


This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 18 September 2023, 17:46 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/m kinitcpio/mkinitcpio-nfs-utils/issues/3
Comment by luto (luto) - Wednesday, 18 January 2023, 23:14 GMT
This is currently blocking our deployment. I'd like to tackle it. Copying over the current ipconfig from klibc seems to do the trick. Is there something I take care of process wise or should i just open a MR on gitlab.archlinux.org?

https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/usr/kinit/ipconfig?id=7ffa5f8d889e8107fd97fcc5628f87e6ef2f4b91

Related: https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio-archiso/-/issues/11

Loading...