Skip to contentSkip to conversation

Proper syntax for initramfs dependencies

Kbuild H. Peter Anvin 2 participants 2 messages May 20, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

This patch adjusts the generation of initramfs dependencies, so that the syntax stays correct when there are multiple files.

scripts/gen_initramfs_list.sh +1 -1
index b1ebd64..2ac9490 100644
@@ -178,7 +178,7 @@ input_file() {
 			print_mtime "$1" >> ${output}
 			cat "$1"         >> ${output}
 		else
-			grep ^file "$1" | cut -d ' ' -f 3
+			grep ^file "$1" | cut -d ' ' -f 3 | sed -e 's/$/ \\/'
 		fi
 	elif [ -d "$1" ]; then
 		dir_filelist "$1"
#1 lore raw
Quoted 2 lines · H. Peter Anvin

This patch adjusts the generation of initramfs dependencies, so that the syntax stays correct when there are multiple files.

This is already fixed in -linus.

Sam