From aea79c35e0f0a081d34ae4305a083c28819e1518 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 23 Feb 2022 10:40:13 +0100 Subject: [PATCH] Ignoring *.img in git commit. Small fixes for documentation of building an image in README.txt. --- .gitignore | 1 + README.md | 6 +++--- build.sh | 0 3 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 build.sh diff --git a/.gitignore b/.gitignore index 033ad72..42d16fa 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ kernel* MiniDexed* sdcard *.zip +*.img diff --git a/README.md b/README.md index 9a645f2..d48a694 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,10 @@ zip -r MiniDexed_Raspberry_Pi_${RPI}.zip sdcard/* sudo apt install --yes mount parted IMG="`date +%Y-%m-%d`_minidexed-RPi${RPI}.img" dd of="${IMG}" seek=50MiB bs=1 count=0 -parted "${IMG}" mktable msdos -parted "${IMG}" mkpart primary fat32 2048s 49MiB +sudo parted "${IMG}" mktable msdos +sudo parted "${IMG}" mkpart primary fat32 2048s 100% DEV=`sudo losetup --find --partscan --show "${IMG}"` -sudo mkfs.vfat -F 32 -n BOOT "${DEV}p0" +sudo mkfs.vfat -F 32 -n BOOT "${DEV}p1" mkdir boot sudo mount "${DEV}p1" boot sudo cp sdcard/* boot diff --git a/build.sh b/build.sh old mode 100644 new mode 100755