aboutsummaryrefslogtreecommitdiffstats
path: root/genfstab.in
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-11-15 19:29:20 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-11-15 19:29:20 -0500
commit996bdb61158669323f6c7d0e10fe57f2794f5be9 (patch)
tree5e67ef6ee7ad75b3ecc8b784ea22ead13c28f54a /genfstab.in
parent9ad058ee2cbce8d249f9dc1ce4f80964e32d2c07 (diff)
parente1f5028f2c3adc68d125ddcdb290a34b03bc6809 (diff)
Update upstream source from tag 'upstream/23'
Update to upstream version '23' with Debian dir 276b917a91240fceb27262a0665df9603ccf4581
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