* grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
on partition.
This commit is contained in:
parent
f991dd3c32
commit
794d8ef2af
2 changed files with 7 additions and 8 deletions
|
@ -314,12 +314,6 @@ grub_cmd_hdparm (grub_extcmd_context_t ctxt, int argc, char **args)
|
|||
if (! disk)
|
||||
return grub_errno;
|
||||
|
||||
if (disk->partition)
|
||||
{
|
||||
grub_disk_close (disk);
|
||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, "partition not allowed");
|
||||
}
|
||||
|
||||
switch (disk->dev->id)
|
||||
{
|
||||
case GRUB_DISK_DEVICE_ATA_ID:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue