mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Fix home directory in /etc/passwd file
This commit is contained in:
parent
87fe0935f5
commit
3d7a1f2c8b
1 changed files with 1 additions and 1 deletions
2
script
2
script
|
|
@ -98,7 +98,7 @@ export PROOT_TMP_DIR=$INST/tmp
|
|||
if [ ! -e $INST/etc/passwd ]; then
|
||||
[ -n "$@" ] || echo "Creating /etc/passwd..."
|
||||
echo "root:x:0:0:System administrator:$INST/root:/bin/sh" > $INST/etc/passwd
|
||||
echo "nix-on-droid:x:\$(/system/bin/stat -c '%u:%g' $INST):nix-on-droid:/bin/sh" >> $INST/etc/passwd
|
||||
echo "nix-on-droid:x:\$(/system/bin/stat -c '%u:%g' $INST):nix-on-droid:/data/data/com.termux.nix/files/home:/bin/sh" >> $INST/etc/passwd
|
||||
fi
|
||||
|
||||
exec $INST/bin/proot \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue