Skip to content

Commit c3129b8

Browse files
lukeseawalkerdemartinofra
authored andcommitted
Fix creation of ram device on Alinux2
Before creating the ram device, be sure that the brd (block ram disk) module is loaded, otherwise you'll get the error: ``` Could not stat /dev/ram1 --- No such file or directory The device apparently does not exist; did you specify it correctly? ``` Fix aws/aws-parallelcluster#2407 Signed-off-by: Luca Carrogu <[email protected]>
1 parent a760880 commit c3129b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
1414

1515
**BUG FIXES**
1616
- Use non interactive `apt update` command when building custom Ubuntu AMIs.
17+
- Fix `encrypted_ephemeral = true` when using Alinux2
1718

1819
2.10.1
1920
------

files/default/setup-ephemeral-drives.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function setup_ephemeral_drives () {
8181
vgcreate vg.01 $PARTITIONS || RC=1
8282
lvcreate -i $NUM_DEVS -I 64 -l 100%FREE -n lv_ephemeral vg.01 || RC=1
8383
if [ "$cfn_encrypted_ephemeral" == "true" ]; then
84+
modprobe brd || RC=1
8485
mkfs -q /dev/ram1 1024 || RC=1
8586
mkdir -p /root/keystore || RC=1
8687
mount /dev/ram1 /root/keystore || RC=1

0 commit comments

Comments
 (0)