Re: Building ChromiumOS image, GCLIENT_ROOT not set properly via build script.

26 views
Skip to first unread message

Harry Cutts

unread,
Aug 16, 2021, 1:17:38 PM8/16/21
to Chromium-dev, Ian Barkley-Yeung, colin.willi...@gmail.com, Chromium OS Development
+chromium-os-dev@

On Friday, August 13, 2021 at 6:18:07 PM UTC-7 Ian Barkley-Yeung wrote:
Chromium OS questions should go to chromiu...@chromium.org, not here.

On Friday, August 13, 2021 at 2:49:58 PM UTC-7 colin.willi...@gmail.com wrote:

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?

Colin Williams

unread,
Aug 16, 2021, 1:52:37 PM8/16/21
to Chromium OS Development, hcu...@chromium.org, i...@chromium.org, Colin Williams, Chromium OS Development, Chromium-dev
If there are moderators in these groups please feel free to remove this post. This has been resolved by a post that was placed directly to Cros-dev many days ago. There was some confusion after following the developer guide. The guide tells us to create API keys, then in a linked page we need to sign up for the Chromium-dev google group. Then I made an incorrect assumption that chromium-dev was the place for cros-dev questions. It looks like I might not be the only one who has made this mistake: https://groups.google.com/u/1/a/chromium.org/g/chromium-os-dev/c/mDVzYm4R-b4 
Reply all
Reply to author
Forward
0 new messages