Skip to content

Commit

Permalink
hotfix for MI4 servers using H12SSL-i motherboards
Browse files Browse the repository at this point in the history
  • Loading branch information
markdhooper committed Sep 28, 2023
1 parent 446e701 commit ea52485
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fakeroot/opt/45drives/tools/dmap
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,13 @@ def alias_mi4(model,os_name,os_version_id,mobo_model):
for i in range(0,4):
#alias the drives connected to the on board sata sata connectors
vdev_id_str += "alias 1-{drive} /dev/disk/by-path/pci-{addr}-ata-{i}{s}\n".format(drive=i+1,addr=bus_address_sata,i=i+5,s=ata_suffix)
elif mobo_model in ["H12SSL-i"]:
# H11SSL-i has different sata controller. It also has 3, so need to specify
# a hard coded bus address.
bus_address_sata = "0000:48:00.0"
for i in range(0,4):
#alias the drives connected to the on board sata sata connectors
vdev_id_str += "alias 1-{drive} /dev/disk/by-path/pci-{addr}-ata-{i}{s}\n".format(drive=i+1,addr=bus_address_sata,i=i+3,s=ata_suffix)
elif mobo_model in ["X11SPi-TF"]:
# The X11SPi-TF would use the S-SATA ports for the boot drives, so it starts at the first I-SATA port. 1,2,3 and 4 are used here.
# a hard coded bus address.
Expand Down

0 comments on commit ea52485

Please sign in to comment.