I see that but did you mount /dev before trying?
The issue is that /dev is read only on my system and has no ./pts folder inside....
Here is my output:
Code: Select all
/dtv/usb/sda1/ubuntuxfs/ubuntu_xfs # mount -o bind /dev /tmp/ubuntu/dev
/dtv/usb/sda1/ubuntuxfs/ubuntu_xfs # mount -t devpts devpts /tmp/ubuntu/dev/pts
mount: mounting devpts on /tmp/ubuntu/dev/pts failed: No such file or directory
/dtv/usb/sda1/ubuntuxfs/ubuntu_xfs # mkdir -p /tmp/ubuntu/dev/pts
mkdir: can't create directory '/tmp/ubuntu/dev/pts': Read-only file system
/dtv/usb/sda1/ubuntuxfs/ubuntu_xfs #
I see few options:
1. Copy the actual read only /dev from the tv image and make it rw on the ubuntu image. Then use mount the same mount points to /tmp/ubuntu/dev as the tv uses.
2. Compile from source few libs required in ubuntu to point to /dtv for pseudo terminals location. opentty.c and ptsname_r.c both hardcode /dev/pts
. So this probably means compiling util linux and maybe more from scratch after patching it
.
3. Fiddle more with MAKEDEV and create a new /dev at the mount point.
4. Pray that sectroyer has an easier solution.