Bug#858832: [weasel at debian.org: Bug#858832: calls efibootmgr with invalid options]

Peter Palfrader weasel at debian.org
Tue Mar 28 06:34:11 UTC 2017


On Mon, 27 Mar 2017, Andrei Borzenkov wrote:

> 27.03.2017 15:41, Colin Watson пишет:
> > I guess that the attached bug happens because grub_install_register_efi
> > is called on non-biosdisk-ish systems but uses
> > grub_util_biosdisk_get_osdev to get an OS device name for
> > efidir_grub_dev->disk, which isn't going to work so well.  I'm a bit
> > rusty here - would anyone care to venture a guess at suitable
> > replacement code that would work on devices other than biosdisk?
> > 
> 
> "biosdisk" here means "firmware device", not necessary BIOS.
> 
> Where /boot/efi is located? Output of lsblk and "grub-probe -t device
> /boot/efi".

} acker:~# df -h /boot/efi
} Filesystem      Size  Used Avail Use% Mounted on
} /dev/md2        953M  176K  953M   1% /boot/efi
} acker:~# cat /proc/mdstat 
} Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
} md1 : active (auto-read-only) raid1 sda3[0] sdb3[1]
}       979565888 blocks super 1.2 [2/2] [UU]
}       bitmap: 0/8 pages [0KB], 65536KB chunk
} 
} md0 : active raid1 sdb2[1] sda2[0]
}       19514368 blocks super 1.2 [2/2] [UU]
}       
} md2 : active raid1 sdb1[1] sda1[0]
}       975808 blocks super 1.0 [2/2] [UU]
}       
} unused devices: <none>
} acker:~# lsblk
} NAME                                 MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
} sda                                    8:0    0 953.9G  0 disk  
} ├─sda1                                 8:1    0   953M  0 part  
} │ └─md2                                9:2    0   953M  0 raid1 /boot/efi
} ├─sda2                                 8:2    0  18.6G  0 part  
} │ └─md0                                9:0    0  18.6G  0 raid1 /
} └─sda3                                 8:3    0 934.3G  0 part  
}   └─md1                                9:1    0 934.2G  0 raid1 
}     ├─vg0-swap                       253:0    0    16G  0 lvm   [SWAP]
}     ├─vg0-OLD--arm--conova--02--root 253:1    0    20G  0 lvm   
}     ├─vg0-OLD--arm--conova--02--lvm  253:2    0    20G  0 lvm   
}     ├─vg0-OLD--arm--conova--02--swap 253:3    0    90G  0 lvm   
}     ├─vg0-arm--conova--02--root      253:4    0    20G  0 lvm   
}     ├─vg0-arm--conova--02--lvm       253:5    0    20G  0 lvm   
}     └─vg0-arm--conova--02--swap      253:6    0    90G  0 lvm   
} sdb                                    8:16   0 953.9G  0 disk  
} ├─sdb1                                 8:17   0   953M  0 part  
} │ └─md2                                9:2    0   953M  0 raid1 /boot/efi
} ├─sdb2                                 8:18   0  18.6G  0 part  
} │ └─md0                                9:0    0  18.6G  0 raid1 /
} └─sdb3                                 8:19   0 934.3G  0 part  
}   └─md1                                9:1    0 934.2G  0 raid1 
}     ├─vg0-swap                       253:0    0    16G  0 lvm   [SWAP]
}     ├─vg0-OLD--arm--conova--02--root 253:1    0    20G  0 lvm   
}     ├─vg0-OLD--arm--conova--02--lvm  253:2    0    20G  0 lvm   
}     ├─vg0-OLD--arm--conova--02--swap 253:3    0    90G  0 lvm   
}     ├─vg0-arm--conova--02--root      253:4    0    20G  0 lvm   
}     ├─vg0-arm--conova--02--lvm       253:5    0    20G  0 lvm   
}     └─vg0-arm--conova--02--swap      253:6    0    90G  0 lvm   
} acker:~# grub-probe -t device /boot/efi
} /dev/md2

Cheers,
-- 
                            |  .''`.       ** Debian **
      Peter Palfrader       | : :' :      The  universal
 https://www.palfrader.org/ | `. `'      Operating System
                            |   `-    https://www.debian.org/



More information about the Pkg-grub-devel mailing list