Skip to content

Commit 720b4da

Browse files
committed
BUGFIX >2tb drives: replace all fdisk -l calls with stderr suppression (workaround)
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
1 parent 360cd39 commit 720b4da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

initrd/etc/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ detect_boot_device() {
11391139
fi
11401140

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

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

0 commit comments

Comments
 (0)