diff options
-rw-r--r-- | CorOS-dev-environment/CorOS-emulation/docker-compose.yaml | 2 | ||||
-rw-r--r-- | CorOS-dev-environment/init_system.sh | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml b/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml index c3321f3..743a1a0 100644 --- a/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml +++ b/CorOS-dev-environment/CorOS-emulation/docker-compose.yaml @@ -15,7 +15,7 @@ services: environment: # Edit this to your needs. This should be just the file name, not the path. - - UPDATE_FILE=verify.bin.gz + - UPDATE_FILE=update-v6_MZO3_RudwwcoQAF3iLtPQ0ERwy4w6.bin.gz # Port forward the VNC port ports: diff --git a/CorOS-dev-environment/init_system.sh b/CorOS-dev-environment/init_system.sh index 5009cfa..d43ab6c 100644 --- a/CorOS-dev-environment/init_system.sh +++ b/CorOS-dev-environment/init_system.sh @@ -16,19 +16,25 @@ echo -e "${NC}" echo -e "${BLUE}========= Initializing CorOS emulation environment =========${NC}" echo "" -echo -e "${YELLOW}[!]${NC} Mounting the QC-filesystem, this can take a couple of seconds..." +echo -e "${YELLOW}[!]${NC} Mounting the CorOS update, this can take a couple of seconds..." # Decompress archive and mount rootfs.ext3 -gunzip -d -k /qc-fs/$UPDATE_FILE -# Run tar command on the decompressed file to extract the rootfs.ext3 file -# We need to remove the .gz extension from the file name -tar -xvf /qc-fs/${UPDATE_FILE::-3} -C /qc-fs-uncompressed -rm /qc-fs/${UPDATE_FILE::-3} +tar -xvf /qc-fs/$UPDATE_FILE -C /qc-fs-uncompressed echo "Mounting rootfs.ext3" mount -t ext4 /qc-fs-uncompressed/rootfs.ext3 $QEMU_LD_PREFIX 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 "Creating /media/p4" +mkdir -p $QEMU_LD_PREFIX/media/p4 +echo "" + # Promt the user to install custom QT # if the user types "y" or "Y" then install custom QT read -p "Do you want to install the custom compiled QT? (y/n) " -r |