Skip to content

Commit

Permalink
use volume_id var in user_data
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrod16 committed Jan 18, 2025
1 parent f4e0b04 commit c5d7d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mount_ebs_volume() {


local device_name
device_name="/dev/$(lsblk --nvme | grep "vol0f2153615108429a8" | awk '{print $1}')"
device_name="/dev/$(lsblk --nvme | grep "$volume_id" | awk '{print $1}')"

if file -s "$device_name" | grep "filesystem"; then
echo "Device $device_name is already formatted."
Expand Down

0 comments on commit c5d7d9a

Please sign in to comment.