This repository was archived by the owner on Jul 11, 2023. It is now read-only.
Commit 8ae64c7
committed
module/init-snippet-attach-ebs-volume: Manually make device name for attached EBS volume.
Due to Linux kernel and Distro changes, an attched EBS volume may not get the specified device name (Ref https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html). Hence logic following may break since specified device does not exist.
This change uses Linux trick to manually setup (if it has not) the device name, so other logic can be static, without guessing which device is it.1 parent 5d49e88 commit 8ae64c7
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | | - | |
16 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
| 24 | + | |
18 | 25 | | |
0 commit comments