Skip to content

Commit cf83d30

Browse files
authored
Merge pull request #47 from 45Drives/ubm-action-dmap-fix
Ubm action dmap fix (patch_vdev_id_conf will now run when either udev 'add' or 'change' actions are triggered, not just 'add')
2 parents 2bc17e3 + 380fae5 commit cf83d30

11 files changed

Lines changed: 56 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
## 45drives-tools 4.0.30-1
1+
## 45drives-tools 4.0.32-1
22

3-
* Fix udev rule issues affecting /etc/vdev_id.conf
3+
* Hotfix - reverses hl4 slot order

manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "45drives-tools",
44
"title": "45drives-tools",
55
"description": "cli tools for 45Drives server products",
6-
"version": "4.0.30",
6+
"version": "4.0.32",
77
"build_number": "1",
88
"stable": true,
99
"author": "Brett Kelly <bkelly@45drives.com>",
@@ -75,10 +75,10 @@
7575
],
7676
"changelog": {
7777
"urgency": "medium",
78-
"version": "4.0.30",
78+
"version": "4.0.32",
7979
"build_number": "1",
8080
"date": null,
8181
"packager": "Brett Kelly <bkelly@45drives.com>",
8282
"changes": []
8383
}
84-
}
84+
}

packaging/debian-bookworm/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
45drives-tools (4.0.32-1bookworm) bookworm; urgency=medium
2+
3+
* Hotfix - reverses hl4 slot order
4+
5+
-- Jordan Keough <jkeough@45drives.com> Fri, 19 Dec 2025 04:18:58 -0400
6+
7+
45drives-tools (4.0.31-1bookworm) bookworm; urgency=medium
8+
9+
* Updates dmap with proper HL8 slot order
10+
11+
-- Jordan Keough <jkeough@45drives.com> Wed, 17 Dec 2025 10:19:47 -0400
12+
113
45drives-tools (4.0.30-1bookworm) bookworm; urgency=medium
214

315
* Fix udev rule issues affecting /etc/vdev_id.conf

packaging/rocky-el8/main.spec.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ fi
7777
/usr/lib/udev/rules.d/*
7878

7979
%changelog
80+
* Fri Dec 19 2025 Jordan Keough <jkeough@45drives.com> 4.0.32-1
81+
- Hotfix - reverses hl4 slot order
82+
* Wed Dec 17 2025 Jordan Keough <jkeough@45drives.com> 4.0.31-1
83+
- Updates dmap with proper HL8 slot order
8084
* Wed Nov 26 2025 Joshua Boudreau <jboudreau@45drives.com> 4.0.30-1
8185
- Fix udev rule issues affecting /etc/vdev_id.conf
8286
* Tue Nov 25 2025 Joshua Boudreau <jboudreau@45drives.com> 4.0.29-1

packaging/rocky-el9/main.spec.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ fi
7777
/usr/lib/udev/rules.d/*
7878

7979
%changelog
80+
* Fri Dec 19 2025 Jordan Keough <jkeough@45drives.com> 4.0.32-1
81+
- Hotfix - reverses hl4 slot order
82+
* Wed Dec 17 2025 Jordan Keough <jkeough@45drives.com> 4.0.31-1
83+
- Updates dmap with proper HL8 slot order
8084
* Wed Nov 26 2025 Joshua Boudreau <jboudreau@45drives.com> 4.0.30-1
8185
- Fix udev rule issues affecting /etc/vdev_id.conf
8286
* Tue Nov 25 2025 Joshua Boudreau <jboudreau@45drives.com> 4.0.29-1

packaging/ubuntu-focal/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
45drives-tools (4.0.32-1focal) focal; urgency=medium
2+
3+
* Hotfix - reverses hl4 slot order
4+
5+
-- Jordan Keough <jkeough@45drives.com> Fri, 19 Dec 2025 04:18:58 -0400
6+
7+
45drives-tools (4.0.31-1focal) focal; urgency=medium
8+
9+
* Updates dmap with proper HL8 slot order
10+
11+
-- Jordan Keough <jkeough@45drives.com> Wed, 17 Dec 2025 10:19:47 -0400
12+
113
45drives-tools (4.0.30-1focal) focal; urgency=medium
214

315
* Fix udev rule issues affecting /etc/vdev_id.conf

packaging/ubuntu-jammy/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
45drives-tools (4.0.32-1jammy) jammy; urgency=medium
2+
3+
* Hotfix - reverses hl4 slot order
4+
5+
-- Jordan Keough <jkeough@45drives.com> Fri, 19 Dec 2025 04:18:58 -0400
6+
7+
45drives-tools (4.0.31-1jammy) jammy; urgency=medium
8+
9+
* Updates dmap with proper HL8 slot order
10+
11+
-- Jordan Keough <jkeough@45drives.com> Wed, 17 Dec 2025 10:19:47 -0400
12+
113
45drives-tools (4.0.30-1jammy) jammy; urgency=medium
214

315
* Fix udev rule issues affecting /etc/vdev_id.conf

tools/dmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def get_sata_pci_addresses():
840840
###############################################################################
841841
def alias_hl4():
842842
vdev_id_str = ""
843-
hl4_order = [1, 2, 3, 4]
843+
hl4_order = [4, 3, 2, 1]
844844

845845
# Fetch SATA addresses dynamically
846846
sata_addresses = get_sata_pci_addresses()

tools/server_identifier

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ g_product_lut_idx = {
2323
"ALIAS_STYLE": 4
2424
}
2525

26-
g_chassis_sizes = ["?","AV15","Q30","S45","XL60","F8X1","F8X2","F8X3","2U","2UGW","1UGW","F2","HL15","VM8","VM16","VM32","HL4","HL8","PRO4","PRO8","PRO15","STUDIO8","HL15_BEAST","VM2"]
26+
g_chassis_sizes = ["?","AV15","Q30","S45","XL60","F8X1","F8X2","F8X3","2U","2UGW","1UGW","F2","HL15","VM8","VM16","VM32","HL4","HL8","PRO4","PRO8","PRO15","STUDIO8","HL15_BEAST","F16","VM2"]
2727

2828
g_mobo_to_version_lut = {
2929
"Base": ["X11SSH-CTF","X11SSM-F","ME03-CE0-000","MS03-6L0-000","MS73-HB0-000","MZ73-LM0-000","MC13-LE1-000","B550I AORUS PRO","EC266D2I-2T/AQC","ROMED8-2T/BCM","ROMED8-2T", "ProArt X870E-CREATOR WIFI"],
@@ -267,8 +267,10 @@ g_product_lut = {
267267
"Destroyinator-XL60-Enhanced": [g_mobo_to_version_lut["Enhanced"] ,0,4,"XL60","DESTROYINATOR"],
268268
"Destroyinator-XL60-Enhanced-S": [g_mobo_to_version_lut["Enhanced-S"] ,0,4,"XL60","DESTROYINATOR"],
269269

270-
"Destroyinator-F16-Enhanced": [g_mobo_to_version_lut["Enhanced"],0,4,"F16","F2STORNADO"],
270+
"Destroyinator-F16-Enhanced": [g_mobo_to_version_lut["Enhanced"],0,4,"F16","F2STORNADO"],
271271
"Destroyinator-F16-Enhanced-S": [g_mobo_to_version_lut["Enhanced-S"],0,4,"F16","F2STORNADO"],
272+
"Destroyinator-F16-Turbo": [g_mobo_to_version_lut["Turbo"],0,4,"F16","F2STORNADO"],
273+
"Destroyinator-F16-Turbo-G": [g_mobo_to_version_lut["Turbo-G"],0,4,"F16","F2STORNADO"],
272274

273275
"Studio-STUDIO8": [g_mobo_to_version_lut["Turbo"],0,0,"STUDIO8","STUDIO"],
274276

udev/67-ubm.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SUBSYSTEMS=="scsi", DRIVERS=="sd", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk|parti
1717
SUBSYSTEMS=="scsi", DRIVERS=="sd", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk|partition", IMPORT{program}="/opt/45drives/ubm/id_disk %k"
1818

1919
# DISK_HANDLED_BY_UBM environment variable will make udev skip rules in 68-vdev.rules
20-
ACTION=="add", ENV{SUBSYSTEM}=="block", ENV{SLOT_NUM}=="?*", ENV{SLOT_NAME}=="?*", ENV{DISK_HANDLED_BY_UBM}="1"
20+
ACTION=="add|change", ENV{SUBSYSTEM}=="block", ENV{SLOT_NUM}=="?*", ENV{SLOT_NAME}=="?*", ENV{DISK_HANDLED_BY_UBM}="1"
2121

2222
KERNEL=="?*", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="disk", ENV{SLOT_NAME}=="?*", SYMLINK+="disk/by-vdev/$env{SLOT_NAME}", SYMLINK+="$env{SLOT_NAME}"
2323
KERNEL=="?*", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="disk", ENV{SLOT_NUM}=="?*", SYMLINK+="disk/by-slot-number/$env{SLOT_NUM}"

0 commit comments

Comments
 (0)