I was receiving errors.
losetup: cannot find an unused loop device
partx: stat of failed: No such file or directory
partx: stat of failed: No such file or directory
After debugging the Chromium OS build scripts, it seems there's a variable GCLIENT_ROOT attempting to set it's value to the source tree path. It seems to have a default value of `/mnt/host/source/` . The build scripts don't seem to properly assign the variable and therefore I get the losetup: cannot find an unused loop device error.
I tried manually assigning GCLIENT_ROOT in cros_woron_make to the appropriate filesystem path for my host system and it didn't work. Somehow GCLIENT root fellback to `/mnt/host/source`, which doesn't exist on my system .
Can someone elucidate me on how to help me fix the script or manually assign the path to the proper location so it can indeed create the loopback device and write the image?