Skip to content

Commit

Permalink
Do not leak modprobe options to avoid booting errors with kernel opti…
Browse files Browse the repository at this point in the history
…ons like libata.dma=0.
  • Loading branch information
mika authored and daniel-baumann committed Apr 2, 2010
1 parent 938f51d commit ab725ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/live-helpers
Expand Up @@ -187,7 +187,11 @@ setup_loop ()
local encryption=${5}
local readonly=${6}

modprobe -q -b "${module}"
# the output of setup_loop is evaluated in other functions,
# modprobe leaks kernel options like "libata.dma=0"
# as "options libata dma=0" on stdout, causing serious
# problems therefor, so instead always avoid output to stdout
modprobe -q -b "${module}" 1>/dev/null

udevadm settle

Expand Down

0 comments on commit ab725ab

Please sign in to comment.