> I have fixed "Can not write log, openpty() failed (/dev/pts not mounted?),
> does not..." warning message by r24, using "mount --rbind /dev /mnt/root/dev",
> not "chroot /mnt/root mount --rbind /dev /mnt/root/dev".
But the umount /mnt/root at the end should fail for the same reason. You still have things mounted under /mnt/root, so it will show up as busy. See my previous comment for ideas on how to fix this.
> I have fixed "Can not write log, openpty() failed (/dev/pts not mounted?),
> does not..." warning message by r24, using "mount --rbind /dev /mnt/root/dev",
> not "chroot /mnt/root mount --rbind /dev /mnt/root/dev".
But the umount /mnt/root at the end should fail for the same reason. You still have things mounted under /mnt/root, so it will show up as busy. See my previous comment for ideas on how to fix this.