Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coreutils on Alpine 3.20 breaks /dev #2418

Closed
jaclu opened this issue Jul 3, 2024 · 1 comment
Closed

coreutils on Alpine 3.20 breaks /dev #2418

jaclu opened this issue Jul 3, 2024 · 1 comment

Comments

@jaclu
Copy link

jaclu commented Jul 3, 2024

If I install coreutils on Alpine 3.20
iSH does not seem to be able to handle /dev resources.

All maj numbers are non POSIX and all min numbers are 0
mknod can't be used to restore devices

As soon as coreutils is removed things go back to normal.

Up to Alpine 3.19 coreutils can be used.

ls -l /dev
drwxr-xr-x  3 root  root   640 Jul  3 21:44 ./
drwxr-xr-x 20 jaclu jaclu  640 Jul  3 18:24 ../
crw-rw-rw-  1 root  root  9, 0 Jul  3 18:23 clipboard
c-w--w--w-  1 root  root  7, 0 Jul  3 21:36 console
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 full
crw-rw-rw-  1 root  root  8, 0 Jul  3 18:23 location
crw-rw-rw-  1 root  root  4, 0 Jul  3 21:44 null
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 ptmx
drwxr-xr-x  0 root  root     0 Jan  1  1970 pts/
crw-rw-rw-  1 root  root  6, 0 Jul  3 18:23 random
crw-rw-rw-  1 root  root  3, 0 Jul  3 18:23 tty
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty1
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty2
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty3
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty4
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty5
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty6
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 tty7
crw-rw-rw-  1 root  root  7, 0 Jul  3 18:23 urandom
crw-rw-rw-  1 root  root  4, 0 Jul  3 18:23 zero

ls -l /dev/pts
crw--w---- 0 root  root 1, 0 Jan  1  1970 0
crw--w---- 0 root  root 1, 0 Jan  1  1970 1
crw--w---- 0 jaclu tty  1, 0 Jan  1  1970 2

iSH version used

iSH 1.3.3 (691)

repos

https://dl-cdn.alpinelinux.org/alpine/v3.20/main
https://dl-cdn.alpinelinux.org/alpine/v3.20/community

update & upgrade done before adding coreutils at: Wed Jul 3 20:43:55 CEST 2024

@tbodt
Copy link
Member

tbodt commented Oct 20, 2024

Turns out this is a bug in musl that was fixed last month (https://www.openwall.com/lists/musl/2024/09/13/17) but hasn't made it to a release yet. However, it can be worked around by simply implementing statx.

@tbodt tbodt closed this as completed in e7ba8f3 Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants