[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#762007: Kernel command line handling change breaks d-i user-params functionality



On Wed, 2014-09-17 at 18:45 +0100, Ian Campbell wrote:
> Not sure what we can do about this. Perhaps choose another separator
> ("=="?) and make user-params support both?

Reading the kernel source it seems it only checks for exactly "--". So I
propose we support "---" in addition to "--", something like the
following (untested) patch.

diff --git a/user-params b/user-params
index 53677b5..2d41e05 100755
--- a/user-params
+++ b/user-params
@@ -14,7 +14,7 @@ for item in $(sed -e 's/[^ =]*="[^"]*[ ][^"]*"//g' \
 	# Remove trailing '?' for debconf variables set with '?='
 	var="${var%\?}"
 
-	if [ "$item" = "--" ]; then
+	if [ "$item" = "--" ] || [ "$item" = "---" ]; then
 		inuser=1
 		collect=""
 	elif [ "$inuser" ]; then

Ian.


Reply to: