Skip to content

Commit 4959b65

Browse files
authored
Merge pull request mendersoftware#2541 from lluiscampos/MEN-7633-os-updates-rpi
MEN-7633: Update Deploy an OS update to require real hardware
2 parents b8621b2 + 87df105 commit 4959b65

File tree

1 file changed

+6
-39
lines changed
  • 01.Get-started/03.Deploy-an-operating-system-update

1 file changed

+6
-39
lines changed

01.Get-started/03.Deploy-an-operating-system-update/docs.md

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ taxonomy:
55
label: tutorial
66
---
77

8+
!!! This tutorial is not supported by the virtual device because it does not have
9+
!!! a board integration required for Operating System updates.
10+
811
This tutorial will walk you through how to do robust Operating System updates with
912
rollback. These types of updates cover the whole system including system level
1013
applications and the Linux kernel and ensure the device comes back in a
@@ -16,6 +19,7 @@ as power loss.
1619

1720
You should:
1821

22+
* have completed [Prepare a Raspberry Pi device](../01.Preparation/01.Prepare-a-Raspberry-Pi-device/docs.md). Note that this tutorial is not compatible with the virtual device.
1923
* have completed [Deploy an application update](../02.Deploy-an-application-update/docs.md)
2024
* know the IP address of your device
2125

@@ -54,30 +58,13 @@ Setup the `IP_ADDRESS` shell variable with correct IP address of your device:
5458
```bash
5559
IP_ADDRESS="<DEVICE-IP-ADDRESS>"
5660
```
57-
[ui-tabs position="top-left" active="0" theme="lite" ]
58-
[ui-tab title="Raspberry Pi"]
61+
5962
On Mender, check `ipv4_eth0` or `ipv4_wlan0` inventory attributes of your
6063
Raspberry Pi device
61-
[/ui-tab]
62-
[ui-tab title="Virtual device"]
63-
On Mender, check `ipv4_docker` inventory attribute of your Virtual device
64-
[/ui-tab]
65-
[/ui-tabs]
6664

6765
Setup `USER` environment variable to match an existing user on the device, e.g:
6866

69-
[ui-tabs position="top-left" active="0" theme="lite" ]
70-
[ui-tab title="Raspberry Pi"]
71-
```bash
7267
USER="<your-user>"
73-
```
74-
[/ui-tab]
75-
[ui-tab title="Virtual device"]
76-
```bash
77-
USER="root"
78-
```
79-
[/ui-tab]
80-
[/ui-tabs]
8168

8269
[Mender Artifacts](../../02.Overview/03.Artifact/docs.md) require
8370
a device compatibility value as input, which **must** match what the device is
@@ -97,21 +84,6 @@ DEVICE_TYPE="raspberrypi4"
9784
!!! Make sure to replace `raspberrypi4` with the specific value that you are
9885
!!! seeing in your setup
9986

100-
Set `SSH_ARG` shell variable to specify the SSH access port:
101-
102-
[ui-tabs position="top-left" active="0" theme="lite" ]
103-
[ui-tab title="Raspberry Pi"]
104-
```bash
105-
SSH_ARG="-p 22"
106-
```
107-
[/ui-tab]
108-
[ui-tab title="Virtual device"]
109-
```bash
110-
SSH_ARG="-p 8822"
111-
```
112-
[/ui-tab]
113-
[/ui-tabs]
114-
11587
## Step 3 - Create a Mender Artifact using the snapshot feature
11688

11789
The easiest way to create Operating System updates is to use the **snapshot**
@@ -130,18 +102,13 @@ mender-artifact write rootfs-image \
130102
-t "${DEVICE_TYPE}" \
131103
-n system-v1 \
132104
-o system-v1.mender \
133-
-S "${SSH_ARG}"
105+
-S "-p 22"
134106
```
135107

136108
! Your device is not usable while the snapshot operation is in progress. Mender
137109
! will freeze the storage device during this operation in order to create a
138110
! consistent snapshot.
139111

140-
!!! Known issue: The latest versions of the virtual device depends on recent versions of `e2fsck`,
141-
!!! not available in older Linux distributions. The command above can fail with
142-
!!! `fsck error: exit status 12`. For a workaround see
143-
!!! [this section in our Troubleshoot guide](../../301.Troubleshoot/03.Mender-Client/docs.md#fsck-error-when-creating-a-Mender-Artifact-using-the-snapshot-feature).
144-
145112
Depending on your local network and storage speed, this will take up to
146113
10-20 minutes to finish. You will see a progress indicator, and when it
147114
reaches 100% it will package the Mender Artifact which will take a few more

0 commit comments

Comments
 (0)