On Sun, 2023-01-08 at 11:26 +0100, Thomas Lange wrote: > Hi Thomas, > > I use a script to reorder the variable $disklist, so setup-storage > can > mostly use disk1, but I can define the order of the disk depending on > disk types or even the serial number of a disk. The script is > class/99-disklist.sh:
we use a similar strategy inspired by a 2013 discussion[1]. with batches of homogeneously-built hosts we can use the information in `/dev/disk/by-path` to walk through a known disk layout in our preferred order (see attached). hth, andy 1. https://lists.uni-koeln.de/pipermail/linux-fai/2013-November/010229.html -- andrew bezella <abeze...@archive.org> internet archive
99-disklist.sh
Description: application/shellscript