Skip to content

Commit

Permalink
fix(base): add default device choice
Browse files Browse the repository at this point in the history
when the device is no one of the previous patterns,
substitute the empty default by the input,
to return the same input
  • Loading branch information
jmfernandez authored and johannbg committed Nov 24, 2021
1 parent d5fd030 commit e8c18c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules.d/99base/dracut-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@ label_uuid_to_dev() {
PARTUUID=*)
echo "/dev/disk/by-partuuid/$(echo "${_dev#PARTUUID=}" | tr "[:upper:]" "[:lower:]")"
;;
*)
echo "$_dev"
;;
esac
}

Expand Down

0 comments on commit e8c18c9

Please sign in to comment.