#!/bin/bash

K3_FULLPATH=`realpath $0`
K3WRK_DIR=`dirname ${K3_FULLPATH}`
echo "Working directory = ${K3WRK_DIR}"

#ARCH="amd64"
#CODENAME="1.7_x86-64"

ARCH="arm64"
CODENAME="4.7_arm"

EDITION="astra-mobile"
TYPE=""

CHROOT_DIR=rootfs-$CODENAME-$EDITION-$ARCH$TYPE

mount -t proc proc "$CHROOT_DIR"/proc
mount -t sysfs sys "$CHROOT_DIR"/sys
mount -t devpts devpts "$CHROOT_DIR"/dev/pts
mount -o bind /dev/shm "$CHROOT_DIR"/dev/shm
