Mon Jul 2 09:04:07 EDT 2012

OpenWRT : Mounting by UUID

Found something that works.  Use mount from mount-utils, which
supports the -U option.  From [1]:

  Actually mounting a partition using its LABEL or UUID is possible.
  You just have to install mount-utils.

  Before that you have to remove the old busybox symlinks:

    rm /bin/mount
    rm /bin/umount

  After that you can install mount-utils:

    opkg update
    opkg install mount-utils

  And now you're able to mount by LABEL and UUID, e.g.:

    mount LABEL=xxx /mnt
    mount UUID=xxx /mnt

  Actually im missing this possibility for swap partitions.

For swap it's probably enough to just iterate over all partitions and
try to enable them as swap.

[1] https://forum.openwrt.org/viewtopic.php?id=13856