Skip to content

Commit

Permalink
Allow for multiple rootfs additions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Rigby authored and mobileoverlord committed Apr 22, 2018
1 parent 0b2994a commit a0de168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mix/tasks/firmware.ex
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ defmodule Mix.Tasks.Firmware do
rootfs_overlay =
case firmware_config[:rootfs_overlay] || firmware_config[:rootfs_additions] do
nil -> []
overlays when is_list(overlays) ->
Enum.map(overlays, fn(overlay) -> ["-a", Path.join(File.cwd!(), overlay)] end)
|> List.flatten()
overlay -> ["-a", Path.join(File.cwd!(), overlay)]
end

Expand Down

0 comments on commit a0de168

Please sign in to comment.