Skip to content

Commit 3f01df2

Browse files
committed
fixing indeting that the build doesn't like
1 parent a6592b7 commit 3f01df2

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

articles/virtual-machines/linux/create-upload-generic.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -261,26 +261,26 @@ To format and create swap you have 2 options either:
261261

262262
Create cfg file to configure swap using Cloud-init:
263263

264-
```
265-
echo 'DefaultEnvironment="CLOUD_CFG=/etc/cloud/cloud.cfg.d/00-azure-swap.cfg"' >> /etc/systemd/system.conf
266-
cat > /etc/cloud/cloud.cfg.d/00-azure-swap.cfg << EOF
267-
#cloud-config
268-
# Generated by Azure cloud image build
269-
disk_setup:
270-
ephemeral0:
271-
table_type: mbr
272-
layout: [66, [33, 82]]
273-
overwrite: True
274-
fs_setup:
275-
- device: ephemeral0.1
276-
filesystem: ext4
277-
- device: ephemeral0.2
278-
filesystem: swap
279-
mounts:
280-
- ["ephemeral0.1", "/mnt"]
281-
- ["ephemeral0.2", "none", "swap", "sw,nofail,x-systemd.requires=cloud-init.service,x-systemd.device-timeout=2", "0", "0"]
282-
EOF
283-
```
264+
```
265+
echo 'DefaultEnvironment="CLOUD_CFG=/etc/cloud/cloud.cfg.d/00-azure-swap.cfg"' >> /etc/systemd/system.conf
266+
cat > /etc/cloud/cloud.cfg.d/00-azure-swap.cfg << EOF
267+
#cloud-config
268+
# Generated by Azure cloud image build
269+
disk_setup:
270+
ephemeral0:
271+
table_type: mbr
272+
layout: [66, [33, 82]]
273+
overwrite: True
274+
fs_setup:
275+
- device: ephemeral0.1
276+
filesystem: ext4
277+
- device: ephemeral0.2
278+
filesystem: swap
279+
mounts:
280+
- ["ephemeral0.1", "/mnt"]
281+
- ["ephemeral0.2", "none", "swap", "sw,nofail,x-systemd.requires=cloud-init.service,x-systemd.device-timeout=2", "0", "0"]
282+
EOF
283+
```
284284
285285
2. Don't create swap space on the OS disk. The Azure Linux Agent can automatically configure swap space using the local resource disk that is attached to the VM after provisioning on Azure. The local resource disk is a temporary disk, and might be emptied when the VM is deprovisioned. After installing the Azure Linux Agent, modify the following parameters in /etc/waagent.conf as needed.
286286
```

0 commit comments

Comments
 (0)