Skip to content

Commit 86e2464

Browse files
committed
buildimg: reduce /proc warnings
1 parent 81ddbde commit 86e2464

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

buildimg.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if [ ${PACKAGE_Error} == 1 ]; then exit 1; fi
3434
LDEV=`sudo losetup -f`
3535

3636
function cleanup() {
37+
sudo umount mnt/BPI-ROOT/proc
3738
sudo umount mnt/BPI-BOOT
3839
sudo umount mnt/BPI-ROOT
3940
sudo losetup -d $1
@@ -132,6 +133,7 @@ fi
132133
echo "configure rootfs for ${board}..."
133134

134135
targetdir="mnt/BPI-ROOT"
136+
sudo mount -o bind /proc $targetdir/proc
135137

136138
sudo chroot $targetdir tee "/etc/fstab" > /dev/null <<EOF
137139
# <file system> <dir> <type> <options> <dump> <pass>

0 commit comments

Comments
 (0)