--- /usr/bin/genfstab 2019-01-05 16:26:33.000000000 +0000 +++ genfstab 2019-07-02 08:31:55.751942239 +0000 @@ -477,7 +477,7 @@ [[ $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