Public bug reported: Binary package hint: hdparm
/etc/hdparm is parsed by /lib/udev/hdparm. This simple script looks for a specific section: command_line, and runs each line in turn. It's quite hacky. The comments even say so. That's fine. The command lines run in command_line should have environment variables evaluated. They don't. This would make it easy to access $DEVNAME to figure out what device is being altered, in case a custom hdparm command was being made for it. The fix is simple:/lib/udev/hdparm should have line 250 altered from: $KEY $SEP $VALUE to eval $KEY $SEP $VALUE This just results in the string stored in $KEY being evaluated, and variables in it being expanded. Seems to work okay for me. ** Affects: hdparm (Ubuntu) Importance: Wishlist Status: New -- parsing of 'command_line' section of hdparm.conf should evaluate variables https://bugs.launchpad.net/bugs/507830 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs