summaryrefslogtreecommitdiffstats
path: root/base/all/sbin
Commit message (Collapse)AuthorAgeFilesLines
* New configuration variable SHARED_DISK_ID_GEN for configurable shared disk IDsMartin Schwenke2011-09-131-2/+1
| | | | | | | | | | | | | | | | | | The function or command specified should take 1 argument (disk index/number) and print to stdout a unique identifier for that disk, followed by a newline. Sensible implementations will probably just use echo. :-) The default implementation is via new function shared_disk_id_default(), which ignores the disk number and generates the ID using uuidgen, as per the previous hardcoded method. scsi_id_autocluster.sh is modified to retrieve disk IDs up to 64 64 characters and is truncates at the first newline. Therefore, in general, the length of IDs is now governed by the generation function rather than this script. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Reorganise base templates directory to allow for node-type-specific files.Martin Schwenke2009-12-041-0/+4
* Previous contents of base/ are now in base/all. * create_node_COMMON() takes an extra argument (inserted as $3) that specifies the node type. All of the create_node_* functions pass "$type" for this argument. * setup_base() now has an optional argument, which is only passed by create_node_COMMON. Rather than simply copying and substituting templates for the entire $BASE_TEMPLATES/ subdirectory it now does this for $BASE_TEMPLATES/all and then $BASE_TEMPLATES/$type. Therefore, the contents of the type-specific directory override the contents of "all" directory. * releases/SoFS.common uses the "all" version of SoFS-postinstall.sh when setting POSTINSTALL_TEMPLATE. This variable also now respects $BASE_TEMPLATES instead of hard-coding the base/ subdirectory. Signed-off-by: Martin Schwenke <martin@meltin.net>