Re: Little preseed question
2009/6/6 Frans Pop <firstname.lastname@example.org>
On Saturday 06 June 2009, MaTa wrote:
> Thanks. Yes, I'm thinking in a little "script" for a late_command, withYes that would work.
> sed. Like:
> d-i preseed/late_command string sed 's/kernel <something>/kernel
> <something> vga=0x17/g' /target/boot/grub/menu.lst
> I think can work...
Or you could drop a script into /usr/lib/finish-install.d/.
To make your parameters permanent, you really need to add them in the
configuration setting part of the file, i.e. either the line
If you want to have them available after the first reboot, you should the
either run update-grub in the /target chroot, or _also_ add them in the
already generated sections for the installed kernel.
But if it's possible, I will try with no debian-installer modifications (only the preseed file), no modify finish.d scripts.
I want to include kernel parameters in only one Grub entry, no all entry. I will try with this:
d-i preseed/late_command string /target/bin/sed "s/sda1/sda1 $KERNEL_PARAMETERS/" menu.lst > /target/boot/grub/menu.lst"
For include kernel parameters in all Grub entries, I thing can be something like this:
d-i preseed/late_command string /target/bin/sed "s/#kopt/kopt=$KERNEL_PARAMETERS/" menu.lst > /target/boot/grub/menu.lst"