Skip to content

Commit

Permalink
fix: ocp-power-automation#424 udev rule construction
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-horn committed Jun 7, 2022
1 parent d7a5ffb commit 06d92c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/1_prepare/templates/create_disk_link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ for device in $(ls -1 $disk_path|egrep -v "[0-9]$"); do
storage_device=$device
echo "Storage disk is $device"
# This symbolic link is used in openshift config
echo "ENV{DEVTYPE}==\"disk\", ENV{SUBSYSTEM}==\"block\", ENV{DEVPATH}==\"$(sudo udevadm info --root --name="$storage_device" | sudo grep DEVPATH | sudo cut -f2 -d'=')\" SYMLINK+=\"$storage_disk_name\"" | sudo tee /lib/udev/rules.d/10-custom-ocp.rules;
echo "ENV{DM_UUID}==\"$(sudo udevadm info --root --name="$storage_device" | sudo grep DM_UUID | sudo cut -f2 -d'=')\" SYMLINK+=\"$storage_disk_name\"" | sudo tee /etc/udev/rules.d/99-custom-ocp.rules;
sudo udevadm control --reload-rules;
sudo udevadm trigger --type=devices --action=change
break
Expand Down

0 comments on commit 06d92c5

Please sign in to comment.