Sunday, June 6, 2010

Adding proxy support for chromiumos build

Its been very long since i updated my blog, lately i have been very busy with lots of things.
I recently had a look at ChromiumOS build and observed that it doesn't take my env proxy settings. If someone is facing the same problem u can add the following lines at the appropriate locations. The first patch is to add proxy support to the user created in chroot and the second patch tell sudo command to use the current proxy env variables instead of resetting them.
------------------------------------------------------------------------------------------
bash_chroot "echo $USER ALL=NOPASSWD: ALL >> /etc/sudoers"
# add proxy support for chromium os build
bash_chroot "echo Defaults env_keep += \"http_proxy https_proxy ftp_proxy no_proxy\" >> /etc/sudoers"
# end
bash_chroot chmod 0440 /etc/sudoers
------------------------------------------------------------------------------------------
>> "$FLAGS_chroot/home/$USER/.bash_profile"
done

# add proxy support for chromium os build
echo "export http_proxy=\"$http_proxy\"" >> "$FLAGS_chroot/home/$USER/.bash_profile"
echo "export https_proxy=\"$https_proxy\"" >> "$FLAGS_chroot/home/$USER/.bash_profile"
echo "export ftp_proxy=\"$ftp_proxy\"" >> "$FLAGS_chroot/home/$USER/.bash_profile"
# end

if [[ "$USER" = "chrome-bot" ]]; then
------------------------------------------------------------------------------------------
I am yet to successfully build a working image and run it.

No comments:

Google