Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Fix apt-get issue on Android
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Fernandes <joel@joelfernandes.org>
  • Loading branch information
joelagnel committed Jul 8, 2018
1 parent c6bb496 commit 73a2130
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions buildstrap
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ rm -rf $OUT_TMP/usr/lib/share/ieee-data/*
rm -rf $OUT_TMP/usr/share/man/*
rm -rf $OUT_TMP/usr/lib/share/man/*

# Fix apt-get issue: Android requires _apt user to be in the
# AID_INET group which is also android specific.
grep -ri _apt:x:100:65534 $OUT_TMP/etc/passwd
if [ $? -ne 0 ]; then
echo "ERROR: _apt user cannot be added to AID_INET group"
else
sed -i -e 's/_apt:x:100:65534/_apt:x:100:3003/' /etc/passwd
fi

# Clone BCC if needed
if [[ ! -z ${INSTALL_BCC+x} ]]; then
git clone https://github.com/iovisor/bcc.git $TDIR/debian/bcc-master
Expand Down

0 comments on commit 73a2130

Please sign in to comment.