aboutsummaryrefslogtreecommitdiffstats
path: root/genfstab.in
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-11-15 19:29:18 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-11-15 19:29:18 -0500
commite1f5028f2c3adc68d125ddcdb290a34b03bc6809 (patch)
tree86e0bb8ced92854127331c2128a5707fd3d029ec /genfstab.in
parent0d2edecb2be14c0ed92a33c7508358d648cd3d2f (diff)
New upstream version 23upstream/23
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