Adding notes for boot from HD
This commit is contained in:
@@ -86,9 +86,7 @@ step_2() {
|
|||||||
fi
|
fi
|
||||||
read_sd_dev "$SDDEV"
|
read_sd_dev "$SDDEV"
|
||||||
# check if device was confirmed
|
# check if device was confirmed
|
||||||
if [ $? -ne 0 ] ; then
|
endReturn -o $? "SD card device not found"
|
||||||
endReturn -o 1 "SD card device not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echoseq " [I] Writing $(basename "$toolDownFile")"
|
echoseq " [I] Writing $(basename "$toolDownFile")"
|
||||||
exep "xzcat \"$toolDownFile\" | dd of=$SDDEV bs=64k oflag=dsync status=progress"
|
exep "xzcat \"$toolDownFile\" | dd of=$SDDEV bs=64k oflag=dsync status=progress"
|
||||||
@@ -172,6 +170,33 @@ step_13() {
|
|||||||
}
|
}
|
||||||
hostsLoc="/etc/hosts"
|
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() {
|
read_sd_dev() {
|
||||||
local partExt=""
|
local partExt=""
|
||||||
|
Reference in New Issue
Block a user