preseed/late_command is interpreted differently depending on how the file is passed to the installer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
preseed (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If I give the installer a preseed file using url=tftp:
d-i preseed/
However, if I rebuild the initrd and put the exact same file as /preseed.cfg in the file system, the command is cut off after the first occurrence of \n, so it tries to execute
tftp -g -l /target/
I tried double-escaping the newlines as \\n, but this just appended a \ to the end of the command line.
I would expect the same preseed.cfg to be parsed the same way, regardless of method of delivery.
A workaround is to use \x0a instead of \n