From b5a7a1235b8ce46e0cae6bf4914d1f375d1a9ffe Mon Sep 17 00:00:00 2001 From: Vitaliy Ivanov Date: Mon, 14 Jul 2014 19:00:05 +0300 Subject: [PATCH] radish-build: add mounting of /dev and /dev/pts. There are failures during radish-build execution: Can not write log, openpty() failed (/dev/pts not mounted?) To prevent this we need to mount /dev and /dev/pts partitions. Signed-off-by: Vitaliy Ivanov --- radish-build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radish-build b/radish-build index 9a1949a..58f111e 100755 --- a/radish-build +++ b/radish-build @@ -105,6 +105,8 @@ fi echo "Preparing system for update..." +mount --bind /dev "${mountdir}/dev" +mount --bind /dev/pts "${mountdir}/dev/pts" mount --bind /proc "${mountdir}/proc" mount --bind /sys "${mountdir}/sys" @@ -222,6 +224,8 @@ chroot "${mountdir}" adduser --disabled-password --gecos "User" user echo "Un-mounting filesystem image..." +umount "${mountdir}/dev/pts" +umount "${mountdir}/dev" umount "${mountdir}/proc" umount "${mountdir}/sys" umount "${mountdir}"