The mddc-add-block-sym program
mddc-add-block-sym is a helper script to create
symlinks at /dev/disk/by-*.
Interface
mddc-add-block-sym
- mddc-add-block-sym takes no arguments.
-
It reads the
MDEVenvironment variable, if it is empty it exits 100. -
It creates PARTUUID symlinks at
/dev/disk/by-partuuid/, using/sys/blockto get the PARTUUID. -
It creates DISKSEQ symlinks at
/dev/disk/by-diskseq/, using/sys/blockto get the DISKSEQ. -
It creates hardware ID symlinks at
/dev/disk/by-id/, using/sys/blockto get the ID. -
It checks whether it can execute
blkid. If this is the case: -
It creates UUID symlinks at
/dev/disk/by-uuid/, usingblkidto get the UUID. -
It creates LABEL symlinks at
/dev/disk/by-label/, usingblkidto get the LABEL.
Exit codes
- 100 if a critical environment variable is missing.
- Since mddc-add-block-sym is an execline script, it exits with an approximation of employed program that failed.
- mddc-add-block-sym mostly uses execline software, the exit behaviour of which can be looked up on their respective pages.
- See also: execline exit code handling.
Options
- There are no options to mddc-add-block-sym.
