Hello, I wanted to ask you a little question : Is it possible to pass an argument through an input box (like for the password) to the initrd ? It could be very usefull for example to set a specific hostname !! Otherwise I have to it somewhere else after during the initrd decompression / execution. Thank you in advance Kind regards. " Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caract?re priv?. S'ils ne vous sont pas destin?s nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque mani?re que ce soit le contenu. Si ce message vous a ?t? transmis par erreur, merci d'en informer l'exp?diteur et de supprimer imm?diatement de votre syst?me informatique ce courriel ainsi que tous les documents qui y sont attach?s" ****** " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." #
>From a non-subscribed user.On Thu, Apr 13, 2017 at 4:41 AM, Alexandre Duplaix via Syslinux <syslinux at zytor.com> wrote:> Hello, > > I wanted to ask you a little question : Is it possible to pass an argument > through an input box (like for the password) to the initrd ? It could be > very usefull for example to set a specific hostname !! Otherwise I have to > it somewhere else after during the initrd decompression / execution. > > Thank you in advance > > Kind regards.I can't think of a way as-is via an "input box" but perhaps a simpler approach: Append to the command line something like "hostname=myhost" LABEL test LINUX mykernel APPEND initrd=initrd.gz then execute "test hostname=myhost", either via the CLI directly or by using the menu to append it to the end of the command line. Otherwise, I know there's the LUA system you could write a script for or the COM32 system you could write a program for. -- -Gene
Bonjour, Le 13/04/2017 ? 10:41, Alexandre Duplaix via Syslinux a ?crit :> Hello, > > I wanted to ask you a little question : Is it possible to pass an argument through an input box (like for the password) to the initrd ? It could be very usefull for example to set a specific hostname !! Otherwise I have to it somewhere else after during the initrd decompression / execution.I confirm what Gene just posted. Not sure if that answerd your question, but the whole command line is copied to /proc/cmdline thus available to the initrd. For instance you could suggest the user to append to the boot command line (set by the selected boot entry of the bootloader config file) something like hostname=myhost T Then hostname will be set to "myhost" system wide as soon as the initrd is loaded. You don't even have to parse the command line yourself, this is done automatically. This is commonly used for instance to set the parameters needed by the brltty daemon to adapt it to the screen reader in use. Have a good day/Bonne journ?e Didier http://slint.fr