aboutsummaryrefslogtreecommitdiffhomepage
path: root/QC-dev-environment/init_system.sh
blob: c6aa3d5b3ac940c7f2de70e83e41fb35c88cb241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
echo "Mounting rootfs.ext3"
mount -t ext4 /qc-fs/rootfs.ext3 $QEMU_LD_PREFIX
echo "Mounting rootfs.ext3 finished"

echo "Installing QT"
cd /qt_src && ./install_qt_compiled.sh
echo "Installing QT finished"

# Prompt user to chroot into the $QEMU_LD_PREFIX directory
# if the user types "y" or "Y" then chroot into the $QEMU_LD_PREFIX directory
# otherwise exit the script
echo "Do you want to chroot into the created QC-filesystem? (y/n)"
read -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
    echo "Chrooting into $QEMU_LD_PREFIX"
    chroot $QEMU_LD_PREFIX
fi