Hi all,
i am trying to figure out how i can add boot options to a kernel. i know some other distros has added some. for example Trinity TRK.
in trk you boot with syslinux in a vesamenu.c32 then you can start the linux live environment with SSH server enabled.
or Virus scan all drivers.
Quote:
label 6
kernel kernel.trk
menu label ^6 : TRK 3.4 - Virusscan all drives (Clamav, non interactive)
append initrd=initrd.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 virusscan
label 9
kernel kernel.trk
menu label ^9 : TRK 3.4 with a secure shell server enabled
append initrd=initrd.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd
|
i cannot figure out how i can create the boot params on my own. and compile them to my liveCD kernel image.
PS: i did not find a more appropriate subforum so i hope this is the wright place :P
EDIT: i Solved my problem!!!
Not sure if this is the wright way. but im pretty shure i have found a way
in the file \kernel-xxx.xxx.xx.xx\scripts\rc.modules add
Code:
if ! /bin/grep param /proc/cmdline; then
echo "[0;1mUse 'param' boot parameter to skip the following step:[0;0m"
/sbin/modprobe param ?> /dev/null
fi
this will skip loading module param if param is found with the boot options.
something like this. i guess.
the next thing to do is make a decent module.c that will you my tricks =]