From e1f5028f2c3adc68d125ddcdb290a34b03bc6809 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 15 Nov 2019 19:29:18 -0500 Subject: New upstream version 23 --- genfstab.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'genfstab.in') 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 -- cgit v1.2.3