Skip to content

Commit

Permalink
use variable for CLI install guide version
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Feb 15, 2024
1 parent aa99ab6 commit 3038d47
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions static/install/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,21 +425,21 @@ <h2><a href="#obtaining-factory-images">Obtaining factory images</a></h2>
<p>When the current signing key is replaced, the new key will be signed with it.</p>

<p>Download the factory images for the device from <a href="/releases">the releases
page</a>. For example, to download the 2021110122 release for a device with the
codename <code><var>DEVICE_NAME</var></code>:</p>
page</a>. For example, to download the <code><var>VERSION</var/></code> release for
a device with the codename <code><var>DEVICE_NAME</var></code>:</p>

<pre>curl -O https://releases.grapheneos.org/<var>DEVICE_NAME</var>-factory-2021110122.zip
curl -O https://releases.grapheneos.org/<var>DEVICE_NAME</var>-factory-2021110122.zip.sig</pre>
<pre>curl -O https://releases.grapheneos.org/<var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip
curl -O https://releases.grapheneos.org/<var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip.sig</pre>

<p>Next, verify the factory images using the signature.</p>

<p>On Linux and macOS:</p>

<pre>ssh-keygen -Y verify -f allowed_signers -I [email protected] -n "factory images" -s <var>DEVICE_NAME</var>-factory-2021110122.zip.sig &lt; <var>DEVICE_NAME</var>-factory-2021110122.zip</pre>
<pre>ssh-keygen -Y verify -f allowed_signers -I [email protected] -n "factory images" -s <var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip.sig &lt; <var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip</pre>

<p>On Windows:</p>

<pre>cmd /c 'ssh-keygen -Y verify -f allowed_signers -I [email protected] -n "factory images" -s <var>DEVICE_NAME</var>-factory-2021110122.zip.sig &lt; <var>DEVICE_NAME</var>-factory-2021110122.zip'</pre>
<pre>cmd /c 'ssh-keygen -Y verify -f allowed_signers -I [email protected] -n "factory images" -s <var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip.sig &lt; <var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip'</pre>

<p>This will producing the following output when successful:</p>

Expand All @@ -456,15 +456,15 @@ <h2><a href="#flashing-factory-images">Flashing factory images</a></h2>

<p>On Linux:</p>

<pre>bsdtar xvf <var>DEVICE_NAME</var>-factory-2021110122.zip</pre>
<pre>bsdtar xvf <var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip</pre>

<p>On macOS and Windows:</p>

<pre>tar xvf <var>DEVICE_NAME</var>-factory-2021110122.zip</pre>
<pre>tar xvf <var>DEVICE_NAME</var>-factory-<var>VERSION</var>.zip</pre>

<p>Move into the directory:</p>

<pre>cd <var>DEVICE_NAME</var>-factory-2021110122</pre>
<pre>cd <var>DEVICE_NAME</var>-factory-<var>VERSION</var></pre>

<p>Flash the images with the flash-all script in the directory.</p>

Expand Down

0 comments on commit 3038d47

Please sign in to comment.