Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Andreas Radke (AndyRTR) - Friday, 11 February 2022, 19:41 GMT
Task Type Feature Request
Category Packages: Core
Status Assigned
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
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

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...