Re: Multiple kernel append parameters?

Carsten Aulbert <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
Hi Steffen,

On 19.03.21 14:39, Steffen Grunewald wrote:
> how do I specify multiple kernel append parameters in the fai-chboot
> command line?
>   -k "foo bar" tells me to read the manual page, instead of creating the
> pxelinux.cfg file...
>   -k "'foo bar'" would use "foo" but complains that is doesn't know the
> host "bar".
> There must be a trick, no?

we simply use this within our wrapper script:

$START_WITH -c "/usr/sbin/fai-chboot -$CHBOOT_OPTS -k'console=$TTY 
nomodeset modprobe.blacklist=$MODPROBE_BLACKLIST' -f $FAI_OPTS 
-s$KERNEL_VERS -u nfs://$FAI_SERVER_IP/srv/fai/config $TARGET_IP"

and those entries do make it into the pxe file:

[...]
append initrd=initrd.img-4.19.0-10-amd64 ip=dhcp 
root=10.20.40.9:/srv/fai/nfsroot:vers=3 rootovl console=tty0 nomodeset 
modprobe.blacklist=mei,mei_me,qla1280,qla2xxx,qla4xxx 
FAI_FLAGS=verbose,sshd,createvt,initial,reboot 
FAI_CONFIG_SRC=nfs://10.20.40.9/srv/fai/config FAI_ACTION=install
[...]

Thus, it ought to be straight-forward

Cheers

Carsten
-- 
Dr. Carsten Aulbert, Max Planck Institute for Gravitational Physics,
Callinstraße 38, 30167 Hannover, Germany, Phone +49 511 762 17185
smime.p7s (application/pkcs7-signature, 5.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.