Previous script only accepts encrypted partitions and not the entire drive. This change will make drives like sda, sdb, hda etc. become visible for mounting. Since the label does not exist on encrypted drives (as they are seen as an unformatted drive), we use the ID instead (/dev/disk/by-id) which provides some information to locate the correct drive.
Previous script only accepts encrypted partitions and not the entire drive. This change will make drives like sda, sdb, hda etc. become visible for mounting. Since the label does not exist on encrypted drives (as they are seen as an unformatted drive), we use the ID instead (/dev/disk/by-id) which provides some information to locate the correct drive.