/dev mounted twice. By initramfs-init and busybox-initscripts/mdev-mount.initd
I investigated that this commit http://git.alpinelinux.org/cgit/mkinitfs/commit/?id=ac397ebafd39a277ca94cd37b70ad15d1c1e3d46 breaks /etc/init.d/mdev-mount script:
---cut---
mount_dev_directory()
{
if [ "$(mountinfo -t /dev)" = "mdev" ]; then
# already mounted
if fstabinfo --quiet /dev; then
mount -o remount -n /dev
fi
return 0
fi
---cut---
But $(mountinfo -t /dev) return devtmpfs instead. As a result, /dev/
mounted twice, and I cannot connect to pty over ssh:
PTY allocation request failed on channel 0
Sorry for my “english”.
(from redmine: issue id 4644, created on 2015-09-17, closed on 2017-04-07)
- Changesets:
- Revision b47c3c9b by Natanael Copa on 2015-09-17T12:10:40Z:
main/busybox-initscripts: make mdev-mount work with devtmpfs
newer initramfs mounts /dev as devtmpfs.
fixes #4644