Here's a version of the script I hacked to quote the new command line so that it can be substituted in safely with sed.
I used temp files instead of a shell variable to store the boot commands, since using sed on files "feels" a bit safer, because of what $(...) does to newlines. But after doing it I'm not sure it gains anything much, since $(...) is needed to paste the result into the fconfig command line anyway... I also tried to make matching of the command line in the boot commands a bit more robust, but that might be overkill. It's still messy and contains some debug --- let me know if you want me to clean it up; otherwise feel free to pull anything useful from it. ** Attachment added: "Hacked redboot-cmdline which tries to work around some sed metacharacter gotchas etc." http://launchpadlibrarian.net/34539882/redboot-cmdline -- redboot-cmdline can not cope with slashes in cmdline https://bugs.launchpad.net/bugs/462605 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
