Adding notes for boot from HD

This commit is contained in:
2021-03-05 22:32:17 +00:00
parent 52be30dc15
commit cd4313cbf1

View File

@@ -86,9 +86,7 @@ step_2() {
fi
read_sd_dev "$SDDEV"
# check if device was confirmed
if [ $? -ne 0 ] ; then
endReturn -o 1 "SD card device not found"
fi
endReturn -o $? "SD card device not found"
echoseq " [I] Writing $(basename "$toolDownFile")"
exep "xzcat \"$toolDownFile\" | dd of=$SDDEV bs=64k oflag=dsync status=progress"
@@ -172,6 +170,33 @@ step_13() {
}
hostsLoc="/etc/hosts"
step_40_info() { echo "Boot from HD notes"; }
step_40_alias() { ALIAS="hdboot"; }
step_40() {
outColor green
cat <<HDBOOT_EOF
[I] Raspberry pi 4 boots from USB automatically if there is no SD available
(needs boot loader version September 3rd)
[I] Adding a swap partition
* [RASPIROOTSSD/etc/fstab]
LABEL=RASPISWAP none swap sw 0 3
* Debian enables a swap partition automatically
because by default there is no swap file
[I] Procedure for raspi 3 is similar to the one for raspbian
(boot on SD and root on SSD)
* Clone RAPSIROOT from SD to SSD
rsync -axHAX RASPIROOT/ RASPIROOTSSD/
* [/boot/firmware/cmdline.txt]
root=LABEL=RASPIROOTSSD
* [RASPIROOTSSD/etc/fstab]
LABEL=RASPIROOTSSD / ...
HDBOOT_EOF
}
read_sd_dev() {
local partExt=""