Fix bug in fstab generation
This commit is contained in:
parent
2420251b28
commit
fceb479402
|
@ -220,7 +220,7 @@ install_kernel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_fstab_entry() {
|
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"
|
|| die "Could not append entry to fstab"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ get_blkid_field_by_device() {
|
||||||
local val
|
local val
|
||||||
val="$(blkid -o export "$device")" \
|
val="$(blkid -o export "$device")" \
|
||||||
|| die "Error while executing blkid '$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"
|
|| die "Could not find $blkid_field=... in blkid output"
|
||||||
val="${val#"$blkid_field="}"
|
val="${val#"$blkid_field="}"
|
||||||
echo -n "$val"
|
echo -n "$val"
|
||||||
|
|
Loading…
Reference in New Issue