diff --git a/ChangeLog b/ChangeLog index a958ded14..3e9bde962 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,13 @@ -2012-02-08 Vladimir Serbinenko +2012-02-12 Vladimir Serbinenko + + * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running + on partition. + +2012-02-12 Vladimir Serbinenko * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno. -2012-02-08 Vladimir Serbinenko +2012-02-12 Vladimir Serbinenko Improve string. Gettextize. diff --git a/grub-core/commands/hdparm.c b/grub-core/commands/hdparm.c index 70635739d..d1e2178c4 100644 --- a/grub-core/commands/hdparm.c +++ b/grub-core/commands/hdparm.c @@ -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: