docs: drop sudo from flash commands, append sync #117
6 changed files with 14 additions and 14 deletions
4
BUILD.md
4
BUILD.md
|
|
@ -146,7 +146,7 @@ Published/downloaded artifacts are compressed as `.img.xz`. Stream the
|
|||
compressed image directly into `dd`:
|
||||
|
||||
```sh
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | sudo dd of=/dev/daX bs=1M status=progress conv=fsync
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | dd of=/dev/daX bs=1M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
@ -163,7 +163,7 @@ curl -fL --retry 5 --retry-delay 5 -O \
|
|||
For a build-local uncompressed image, plain `dd` is also fine:
|
||||
|
||||
```sh
|
||||
sudo dd if=tmp/output/clawdie-quindecim-0.11.0.img of=/dev/daX bs=1M status=progress conv=fsync
|
||||
dd if=tmp/output/clawdie-quindecim-0.11.0.img of=/dev/daX bs=1M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
|
|||
12
FLASHING.md
12
FLASHING.md
|
|
@ -68,7 +68,7 @@ Flash by streaming xz into `dd`:
|
|||
|
||||
```sh
|
||||
set -o pipefail 2>/dev/null || true
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | dd of=/dev/sdX bs=4M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ sudo umount /dev/daXs* 2>/dev/null
|
|||
Flash by streaming xz into `dd`:
|
||||
|
||||
```sh
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | sudo dd of=/dev/daX bs=1M status=progress conv=fsync
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | dd of=/dev/daX bs=1M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
@ -152,14 +152,14 @@ For a local build artifact that already exists as a raw image:
|
|||
### Linux
|
||||
|
||||
```sh
|
||||
sudo dd if=clawdie-quindecim-0.11.0.img of=/dev/sdX bs=4M status=progress conv=fsync
|
||||
dd if=clawdie-quindecim-0.11.0.img of=/dev/sdX bs=4M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
### FreeBSD
|
||||
|
||||
```sh
|
||||
sudo dd if=clawdie-quindecim-0.11.0.img of=/dev/daX bs=1M status=progress conv=fsync
|
||||
dd if=clawdie-quindecim-0.11.0.img of=/dev/daX bs=1M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
@ -189,7 +189,7 @@ Then wipe only after confirming `/dev/sdX` is the USB stick:
|
|||
|
||||
```sh
|
||||
sudo sgdisk --zap-all /dev/sdX
|
||||
sudo dd if=/dev/zero of=/dev/sdX bs=16M status=progress conv=fsync
|
||||
dd if=/dev/zero of=/dev/sdX bs=16M status=progress conv=fsync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
@ -205,7 +205,7 @@ Then wipe only after confirming `/dev/daX` is the USB stick:
|
|||
|
||||
```sh
|
||||
sudo gpart destroy -F /dev/daX
|
||||
sudo dd if=/dev/zero of=/dev/daX bs=16M status=progress conv=fsync
|
||||
dd if=/dev/zero of=/dev/daX bs=16M status=progress conv=fsync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ Linux:
|
|||
```sh
|
||||
sha256sum -c clawdie-quindecim-0.11.0.img.xz.sha256
|
||||
set -o pipefail 2>/dev/null || true
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | dd of=/dev/sdX bs=4M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ FreeBSD:
|
|||
```sh
|
||||
HASH=$(awk '{print $1}' clawdie-quindecim-0.11.0.img.xz.sha256)
|
||||
sha256 -c "$HASH" clawdie-quindecim-0.11.0.img.xz
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | sudo dd of=/dev/daX bs=1M status=progress conv=fsync
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | dd of=/dev/daX bs=1M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ If you see stale labels such as `nomadbsd_zroot`, wipe the whole stick first:
|
|||
```sh
|
||||
sudo umount /dev/sdX* 2>/dev/null || true
|
||||
sudo sgdisk --zap-all /dev/sdX
|
||||
sudo dd if=/dev/zero of=/dev/sdX bs=16M status=progress conv=fsync
|
||||
dd if=/dev/zero of=/dev/sdX bs=16M status=progress conv=fsync
|
||||
```
|
||||
|
||||
### Flash the image
|
||||
|
|
@ -433,7 +433,7 @@ curl -fL --retry 5 --retry-delay 5 -O \
|
|||
https://osa.smilepowered.org/downloads/iso/clawdie-quindecim-0.11.0.img.xz.sha256
|
||||
sha256sum -c clawdie-quindecim-0.11.0.img.xz.sha256
|
||||
set -o pipefail 2>/dev/null || true
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync
|
||||
xz -dc clawdie-quindecim-0.11.0.img.xz | dd of=/dev/sdX bs=4M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
|
|||
2
build.sh
2
build.sh
|
|
@ -2527,4 +2527,4 @@ echo " Image size : ${IMAGE_LOGICAL_SIZE}"
|
|||
echo " Allocated : ${IMAGE_ALLOCATED_SIZE} (sparse on build host)"
|
||||
echo ""
|
||||
echo " Write to USB:"
|
||||
echo " dd if=${OUTPUT_IMAGE} of=/dev/daX bs=1M status=progress"
|
||||
echo " dd if=${OUTPUT_IMAGE} of=/dev/daX bs=1M status=progress conv=fsync && sync"
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ whole-disk path with the operator before writing.
|
|||
Example for Linux, replacing `/dev/sdX` with the confirmed whole disk:
|
||||
|
||||
```sh
|
||||
xz -dc tmp/flash-downloads/<image>.img.xz | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync
|
||||
xz -dc tmp/flash-downloads/<image>.img.xz | dd of=/dev/sdX bs=4M status=progress conv=fsync && sync
|
||||
sync
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue