From 1b7587fa9dccaff1b84ef4059da93e0321f18d1a Mon Sep 17 00:00:00 2001 From: Nikhil Jha Date: Feb 18 2020 22:32:42 +0000 Subject: now it works as root --- diff --git a/.env b/.env new file mode 100644 index 0000000..5954681 --- /dev/null +++ b/.env @@ -0,0 +1,17 @@ +PP_SD_DEVICE=/dev/sdc +# This is neccesary because if your system detects it as mmcblk +# then the partitions are mmcblkXpY instead of mmcblkXY. +# Could this be automatic? Yes. Is it? No. +# These partitions do not need to exist yet, they will be created. +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-20200214.n.1.aarch64.raw +KERNEL_RAW_DIR=pp-5.6 + +export PP_SD_DEVICE +export PP_PARTA +export PP_PARTB +export FEDORA_RAW_FILE +export KERNEL_RAW_DIR diff --git a/00-download-files.sh b/00-download-files.sh index ca1b04c..a665b21 100644 --- a/00-download-files.sh +++ b/00-download-files.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + 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 diff --git a/00-selftest.sh b/00-selftest.sh index 386332e..1d373cd 100644 --- a/00-selftest.sh +++ b/00-selftest.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + echo "==============" echo "00-selftest.sh" echo "==============" diff --git a/01-partition-drive.sh b/01-partition-drive.sh index eac2031..9178277 100644 --- a/01-partition-drive.sh +++ b/01-partition-drive.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + echo "=====================" echo "01-partition-drive.sh" echo "=====================" diff --git a/02-install-rootfs.sh b/02-install-rootfs.sh index 1f60c03..561a40d 100644 --- a/02-install-rootfs.sh +++ b/02-install-rootfs.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + echo "====================" echo "02-install-rootfs.sh" echo "====================" diff --git a/03-install-kernel.sh b/03-install-kernel.sh index 5458970..a79b0d4 100644 --- a/03-install-kernel.sh +++ b/03-install-kernel.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + echo "====================" echo "03-install-kernel.sh" echo "====================" diff --git a/04-edit-fstab.sh b/04-edit-fstab.sh index a52080f..d2e707c 100644 --- a/04-edit-fstab.sh +++ b/04-edit-fstab.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + echo "================" echo "04-edit-fstab.sh" echo "================" diff --git a/05-setup-user.sh b/05-setup-user.sh index 50ee095..9df48e5 100644 --- a/05-setup-user.sh +++ b/05-setup-user.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +source .env + echo "================" echo "05-setup-user.sh" echo "================" diff --git a/env.sh b/env.sh deleted file mode 100644 index 5954681..0000000 --- a/env.sh +++ /dev/null @@ -1,17 +0,0 @@ -PP_SD_DEVICE=/dev/sdc -# This is neccesary because if your system detects it as mmcblk -# then the partitions are mmcblkXpY instead of mmcblkXY. -# Could this be automatic? Yes. Is it? No. -# These partitions do not need to exist yet, they will be created. -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-20200214.n.1.aarch64.raw -KERNEL_RAW_DIR=pp-5.6 - -export PP_SD_DEVICE -export PP_PARTA -export PP_PARTB -export FEDORA_RAW_FILE -export KERNEL_RAW_DIR