This script helps a user or admin to automatically convert items in fstab so that they would use UUIDs instead.
uuidfstab[.sh]
Code:
#!/bin/bash
function error {
echo "$1" >&2
exit 1
}
function show_usage_and_exit {
error "Usage: $0 <path_to_fstab_file> [<new_fstab_file>]"
}
function process {
local FSTABFILE=$1 NEWFSTABFILE=$2 LINE DEVICE TEMPFILE
...