proot
proot copied to clipboard
hostname: Function not implemented
Problem description
localhost ~ # hostname gentoo
hostname: Function not implemented
Steps to reproduce
$ pkg install proot-distro
$ proot-distro install gentoo
$ proot-distro login gentoo
$ hostname gentoo
Expected behavior
# hostname
localhost
# hostname gentoo
# hostname
gentoo
Additional information
~ $ term-info
Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.librehat.com/apt/termux-main/ stable main
# science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable
# game-repo (sources.list.d/game.list)
deb https://packages.termux.org/apt/termux-games games stable
Updatable packages:
openssh/stable 8.6p1-3 aarch64 [upgradable from: 8.6p1-1]
termux-keyring/stable 2.2 all [upgradable from: 2.0]
Android version:
10
Kernel build information:
Linux localhost 4.14.116 #1 SMP PREEMPT Fri Aug 6 19:16:39 CST 2021 aarch64 Android
Device manufacturer:
HUAWEI
Device model:
SPN-AL00
~ $
While proot doesn't currently handle sethostname syscall, hostname can be configured in command line, see #80.