From cc0dbd61055a0d8f5ad440e9f652206baaeb5cb5 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sat, 30 Oct 2021 00:08:41 -0500 Subject: [PATCH] Ubuntu Raspberry Pi: Change partitioning script The partition script for sfdisk does not need another layer of indirection. Instead of being a shell script that writes an sfdisk script, it is now just an sfdisk script directly. The shell variables are interpolated by the heredoc anyway. Signed-off-by: Richard Laager --- ...untu 20.04 Root on ZFS for Raspberry Pi.rst | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst index 3d2c9e0..cd3ac84 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst @@ -129,22 +129,16 @@ be deleted. The important numbers are 524288 and 6052348. Store those in variables:: - export BOOT=524288 - export ROOT=6052348 + BOOT=524288 + ROOT=6052348 #. Create a partition script:: - vi partitions.sh - - with the following contents: - - .. code-block:: sh - - cat << EOF + cat > partitions << EOF label: dos unit: sectors - - 1 : start= 2048, size=$BOOT, type=c, bootable + + 1 : start= 2048, size=$BOOT, type=c, bootable 2 : start=$((2048+BOOT)), size=$ROOT, type=83 3 : start=$((2048+BOOT+ROOT)), size=$ROOT, type=83 EOF @@ -187,7 +181,7 @@ be deleted. #. Create the partitions:: - sh -u partitions.sh | sudo sfdisk $DISK + sudo sfdisk $DISK < partitions #. Loopback mount the image::