aboutsummaryrefslogtreecommitdiffstats
mddc-add-block-sym

mdevd-conf
Software
0x53.net

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 MDEV environment variable, if it is empty it exits 100.
  • It creates PARTUUID symlinks at /dev/disk/by-partuuid/, using /sys/block to get the PARTUUID.
  • It creates DISKSEQ symlinks at /dev/disk/by-diskseq/, using /sys/block to get the DISKSEQ.
  • It creates hardware ID symlinks at /dev/disk/by-id/, using /sys/block to get the ID.
  • It checks whether it can execute blkid. If this is the case:
    • It creates UUID symlinks at /dev/disk/by-uuid/, using blkid to get the UUID.
    • It creates LABEL symlinks at /dev/disk/by-label/, using blkid to 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.