Public bug reported:

Binary package hint: debian-installer

I tried to preseed using a url with parameters (e.g.
preseed/url=http://server/preseed.php?name=hostname)

But during the installation the url wasn't used correctly. The installer used 
only a portion of the given url string (e.g. http://server/preseed.php?name). 
Everything after the = is not used.
I've done some research and found out that the bin/env2debconf (in initrd.gz) 
splits the environment variable  by the = sign, but it's not doing this 
correctly. It tries to truncate the string after the first = searched from the 
end of the string, but it should use the string from the beginning up to the 
first = sign. I created a patch which works well with the above url, but i 
haven't test it with other pressed methods (like file).

--- bin/env2debconf.org 2007-03-31 14:49:43.000000000 +0200
+++ bin/env2debconf     2007-03-31 14:50:09.000000000 +0200
@@ -8,7 +8,7 @@
 OLDIFS=$IFS
 IFS=$NEWLINE
 for line in $(set); do
-       var="${line%=*}"
+       var="${line%%=*}"
        val="${line#[!=]*=}"
        # support preseeding without forcing seen flag
        if [ "${var%\?}" != "$var" ]; then

I hope that my propused fix is fine and get into one of the next
versions.

** Affects: debian-installer (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Preseed from HTTP URL with parameters does not work
https://launchpad.net/bugs/99399

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to