Verified Commit aa78df6c authored by Matt Devillier's avatar Matt Devillier
Browse files

etc/functions: Filter boot device options with '/dev/'

Grepping on just 'Disk' can lead to disk UUID identifier strings
being added to /tmp/disklist, which then fail to parse later on.
Avoid this by grepping on 'Disk /dev' instead.

Signed-off-by: Matt Devillier's avatarMatt DeVillier <>
parent 5f17fcaa
......@@ -325,7 +325,7 @@ detect_boot_device()
# generate list of possible boot devices
fdisk -l | grep "Disk" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist
fdisk -l | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist
# filter out extraneous options
> /tmp/boot_device_list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment