From 658602218747dd446fa769dc81aec62cdd1a5816 Mon Sep 17 00:00:00 2001 From: Nikhil Jha Date: Feb 24 2020 22:51:37 +0000 Subject: fix mount bugs --- diff --git a/.env b/.env index 8c2b748..4a7147f 100644 --- a/.env +++ b/.env @@ -7,7 +7,7 @@ PP_PARTA=/dev/sdc1 PP_PARTB=/dev/sdc2 # Only needed if you want a custom file, otherwise do not change. -FEDORA_RAW_FILE=Fedora-Workstation-Rawhide-20200218.n.0.aarch64.raw +FEDORA_RAW_FILE=Fedora-Workstation-Rawhide-20200224.n.0.aarch64.raw.xz KERNEL_RAW_DIR=pp-5.6 export PP_SD_DEVICE diff --git a/00-download-files.sh b/00-download-files.sh index 51f174e..e5f4214 100755 --- a/00-download-files.sh +++ b/00-download-files.sh @@ -3,6 +3,9 @@ set -e source .env +echo "This may fail! This is because it is set to download a file that is too old." +echo "Please visit https://dl.fedoraproject.org/pub/fedora-secondary/development/rawhide/Workstation/aarch64/images/ and update the file name in .env with the new file name on that website." + echo "This script will download a few GB of Fedora and a few MB of Kernel into the current directory." echo "Look inside the script if you would rather download manually." echo @@ -15,6 +18,6 @@ then tar xf pp.tar.gz # Download fedora - wget https://dl.fedoraproject.org/pub/fedora-secondary/development/rawhide/Workstation/aarch64/images/Fedora-Workstation-Rawhide-20200218.n.0.aarch64.raw.xz -O rawhide.raw.xz + wget https://dl.fedoraproject.org/pub/fedora-secondary/development/rawhide/Workstation/aarch64/images/$FEDORA_RAW_FILE -O rawhide.raw.xz xz --decompress rawhide.raw.xz fi diff --git a/02-install-rootfs.sh b/02-install-rootfs.sh index 7355f89..d62b4de 100755 --- a/02-install-rootfs.sh +++ b/02-install-rootfs.sh @@ -47,7 +47,7 @@ then mkdir -p rootfs infecho "Mounting Fedora image..." - losetup /dev/loop0 $FEDORA_RAW_FILE + losetup /dev/loop0 rawhide.raw partprobe -s /dev/loop0 mount /dev/loop0p3 imgfs