diff options
author | Thomas Van Iseghem <[email protected]> | 2023-05-25 21:19:37 +0200 |
---|---|---|
committer | Thomas Van Iseghem <[email protected]> | 2023-05-25 21:19:37 +0200 |
commit | 8d904aec5f50e90243c89d9bc6ea7f62f795d881 (patch) | |
tree | a7adc8958e4157f792e0963425acdb033fa599d3 | |
parent | 5e8c6fcd000587acd3bca4fb4c35b48a8544de47 (diff) | |
download | OpenCortex-8d904aec5f50e90243c89d9bc6ea7f62f795d881.tar.gz OpenCortex-8d904aec5f50e90243c89d9bc6ea7f62f795d881.zip |
Fixed DNS resolving / Auto mount disk to ARM sysroot
-rw-r--r-- | CorOS-dev-environment/init_system.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CorOS-dev-environment/init_system.sh b/CorOS-dev-environment/init_system.sh index b575329..dfccf58 100644 --- a/CorOS-dev-environment/init_system.sh +++ b/CorOS-dev-environment/init_system.sh @@ -37,13 +37,14 @@ echo -e "${YELLOW}Mounting rootfs.ext3 finished!${NC}" echo "" echo -e "${YELLOW}[!]${NC} Setting up the CorOS file system..." -echo "Creating /etc/resolv.conf" -rm $QEMU_LD_PREFIX/etc/resolv.conf -echo "nameserver 8.8.8.8" >> $QEMU_LD_PREFIX/etc/resolv.conf -echo "nameserver 8.8.4.4" >> $QEMU_LD_PREFIX/etc/resolv.conf +echo "Mounting /etc/resolv.conf" +rm $QEMU_LD_PREFIX/etc/resolv.conf && touch $QEMU_LD_PREFIX/etc/resolv.conf +mount --bind /etc/resolv.conf $QEMU_LD_PREFIX/etc/resolv.conf echo "Creating /media/p4" mkdir -p $QEMU_LD_PREFIX/media/p4 +echo "Creating /media/ext and mounting host /mnt on it" +mkdir -p $QEMU_LD_PREFIX/media/ext && mount --bind /mnt $QEMU_LD_PREFIX/media/ext echo "" # Promt the user to install custom QT @@ -66,7 +67,7 @@ read -p "Do you want to chroot into the created QC-filesystem? (y/n) " -r if [[ $REPLY =~ ^[Yy]$ ]] then echo "" - echo "[->] Chrooting into $QEMU_LD_PREFIX" + echo "${YELLOW}[->]${NC} Chrooting into $QEMU_LD_PREFIX" chroot $QEMU_LD_PREFIX sh -c "uname -a" && chroot $QEMU_LD_PREFIX/ echo "" fi |