Load loop module before losetup

This commit is contained in:
Les De Ridder 2016-04-14 14:15:30 +02:00
parent bf7825fc6f
commit be73259522
1 changed files with 2 additions and 0 deletions

View File

@ -281,6 +281,8 @@ build_parted_cmdline() {
}
setup_loop_device() {
modprobe loop
local offset_MiB=$1
local size_MiB=$2
losetup --find --show --offset ${offset_MiB}MiB --size ${size_MiB}MiB /d2a/work/image