Skip to content

Commit

Permalink
BUGFIX >2tb drives: replace all fdisk -l calls with stderr suppressio…
Browse files Browse the repository at this point in the history
…n (workaround)

Signed-off-by: Thierry Laurion <[email protected]>
  • Loading branch information
tlaurion committed Jan 20, 2025
1 parent 360cd39 commit 720b4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initrd/etc/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ detect_boot_device() {
fi

# generate list of possible boot devices
fdisk -l | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" >/tmp/disklist
fdisk -l 2>/dev/null | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" >/tmp/disklist

# Check each possible boot device
for i in $(cat /tmp/disklist); do
Expand Down

0 comments on commit 720b4da

Please sign in to comment.