multiple grub opts not working due to quoting
|Reported by:||framer99||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Keywords:||grub opts options cmdline arg||Cc:|
when I add multiple grub options for a ext2 image in menuconfig, they are put
into menu.lst using double quotes and the kernel does not seem to use them.
Here's some logs that show the problem using the clocksource= arg. The
specified clock is ignored when quoted with another arg and the default
clock "tsc" is used.
root@xxx:/# logread | grep "command line\|Time:" Feb 26 04:12:49 (none) user.notice kernel: Kernel command line: root=/dev/hdb2 rootfstype=ext2 "panic=10 clocksource=scx200_hrt" noinitrd console=ttyS0,9600n8 reboot=bios Feb 26 04:12:49 (none) user.info kernel: Time: tsc clocksource has been installed.
/proc/cmdline does still show the quoted args, but they weren't actually used.
After editing menu.lst and remvoing the quotes:
root@xxx:/# logread | grep "command line\|Time:" Feb 26 04:17:29 (none) user.notice kernel: Kernel command line: root=/dev/hdb2 rootfstype=ext2 panic=10 clocksource=scx200_hrt noinitrd console=ttyS0,9600n8 reboot=bios Feb 26 04:17:29 (none) user.info kernel: Time: scx200_hrt clocksource has been installed.
a single arg that is quoted does work. You only see the problem when you put more than one arg in using menuconfig.