#!/bin/sh mount | grep $LFS/qlnx/dev || mount -v --bind /dev $LFS/qlnx/dev mount | grep $LFS/qlnx/dev/pts || mount -v --bind /dev/pts $LFS/dev/pts mount | grep $LFS/qlnx/proc || mount -vt proc proc $LFS/qlnx/proc mount | grep $LFS/qlnx/sys || mount -vt sysfs sysfs $LFS/qlnx/sys mount | grep $LFS/qlnx/run || mount -vt tmpfs tmpfs $LFS/qlnx/run chroot "$LFS" /qlnx/bin/env -i \ HOME=/home/admin \ TERM="$TERM" \ PS1='(qlinux chroot) \u:\w\$ ' \ CC=musl-gcc \ PATH=/exec:qlnx/bin:/plng/bin:/misc/bin:libs/bin \ /qlnx/bin/bash --login +h umount $LFS/qlnx/dev/pts umount $LFS/qlnx/dev umount $LFS/qlnx/proc umount $LFS/qlnx/sys umount $LFS/qlnx/run