2013-06-05 10:44:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-03-29 03:28:22 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2013-08-07 08:39:23 +00:00
|
|
|
# Fedora 18 sets up for root to have a label of "_/"
|
|
|
|
# Fedora 19 sets up for root to have a UUID
|
|
|
|
# This regex will catch both
|
2014-09-16 18:11:07 +00:00
|
|
|
sed -i "s%.*\s\/\s%LABEL=${DIB_ROOT_LABEL} / %" /etc/fstab
|