Commit 251adae0 authored by Ben Hutchings's avatar Ben Hutchings

unmkinitramfs: Don't attempt to create /main directory when listing

The condition for creating a directory before running cpio was incorrect.
Signed-off-by: default avatarBen Hutchings <>
Closes: #848423
parent d3edbf5b
......@@ -81,7 +81,7 @@ splitinitramfs()
trap "rm -f '$subarchive'" EXIT
dd < "$initramfs" bs="$offset" skip=1 2> /dev/null \
> $subarchive
xcpio "$subarchive" "$dir/main" -i "$@"
xcpio "$subarchive" "${dir:+$dir/main}" -i "$@"
xcpio "$initramfs" "$dir" -i "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment