converting a hostname to an IP address
Hi,
Yesterday, I committed a change to nobootloader so it also shows the
output of user-params in the kernel command line, and changed
partman-nbd so it will output a correct nbdroot= parameter. With that,
users should be shown a working kernel command line provided they
entered the server by IP address.
Unfortunately, the environment in an initramfs (as generated by
update-initramfs, not as generated by the d-i build system) does not
have the ability to do name resolving (there isn't a resolv.conf to be
found). Arguably this is a bug in initramfs-tools, but then I guess an
initramfs isn't supposed to be a full system.
As such, I'd need to a name lookup of the servername the user provided
me with, preferably in a shell command, so that when root-on-NBD is
used, I can provide the user with a working command line (i.e., an
nbdroot= parameter that specifies the server by IP address, not
hostname).
Is there anything like that in d-i? If not, I'll have to come up with
something myself, I'm afraid.
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
Reply to: