jfloff / docker-lineageos

A more automated Docker-based build environment for LineageOS
MIT License
61 stars 41 forks source link

error: could not lock config file /home/lineageos/.gitconfig: Permission denied #16

Open thejacer87 opened 5 years ago

thejacer87 commented 5 years ago

running:

docker run --rm --privileged \
  -v "$(pwd)/android":/home/lineageos \
  -e GIT_USER_NAME=thejacer87 \
  -e GIT_USER_EMAIL=my@email.com \
  -e DEVICE_CODENAME=serrano3gxx \
  -ti jfloff/lineageos lineageos init build

get this error:

error: could not lock config file /home/lineageos/.gitconfig: Permission denied
error: could not lock config file /home/lineageos/.gitconfig: Permission denied
[INFO] Initializing repository.
fatal: cannot make .repo directory: Permission denied
[INFO] Sync repository
error: command 'sync' requires repo to be installed first.
         Use "repo init" to install it here.
[INFO] Downloading extra files
[INFO] Enable caching at '/home/lineageos/cache' with 50G
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
[INFO] Setup 'build/envsetup.sh'
chmod: cannot access 'build/envsetup.sh': No such file or directory
bash: /home/lineageos/build/envsetup.sh: No such file or directory
bash: breakfast: command not found
[INFO] Export environment setup into '/home/lineageos/.lineageos_dev_init'.
bash: /home/lineageos/.lineageos_dev_init: Permission denied
[DONE] Init done.
[INFO] Building LineageOS ...
bash: /home/lineageos/build/envsetup.sh: No such file or directory
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
bash: breakfast: command not found
bash: croot: command not found
bash: brunch: command not found