Fix bug in fstab generation

This commit is contained in:
oddlama 2020-04-25 20:12:00 +02:00
parent 2420251b28
commit fceb479402
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ install_kernel() {
}
add_fstab_entry() {
printf '%-46s %-24s %-6s %-96s %s' "$1" "$2" "$3" "$4" "$5" >> /etc/fstab \
printf '%-46s %-24s %-6s %-96s %s\n' "$1" "$2" "$3" "$4" "$5" >> /etc/fstab \
|| die "Could not append entry to fstab"
}

View File

@ -124,7 +124,7 @@ get_blkid_field_by_device() {
local val
val="$(blkid -o export "$device")" \
|| die "Error while executing blkid '$device'"
val="$(grep -- "$blkid_field" <<< "$val")" \
val="$(grep -- "^$blkid_field=" <<< "$val")" \
|| die "Could not find $blkid_field=... in blkid output"
val="${val#"$blkid_field="}"
echo -n "$val"