aboutsummaryrefslogtreecommitdiffstats
path: root/genfstab.in
diff options
context:
space:
mode:
Diffstat (limited to 'genfstab.in')
-rw-r--r--genfstab.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/genfstab.in b/genfstab.in
index b8220ea..c626290 100644
--- a/genfstab.in
+++ b/genfstab.in
@@ -220,7 +220,7 @@ done
[[ $device = *'\040(deleted)' ]] && continue
if [[ $type = file ]]; then
- printf '%-20s' "$device"
+ printf '%-20s' "${device#${root%/}}"
elif [[ $device = /dev/dm-+([0-9]) ]]; then
# device mapper doesn't allow characters we need to worry
# about being mangled, and it does the escaping of dashes