Devuan bug report logs - #222
hdparm rules use DEVNAME only

version graph

Package: eudev; Maintainer for eudev is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for eudev is src:eudev.

Reported by: Ralph Ronnquist <ralph.ronnquist@gmail.com>

Date: Mon, 25 Jun 2018 12:03:01 UTC

Severity: normal

Tags: moreinfo

Found in version 3.2.2.13

Done: Arne Wichmann <aw@anhrefn.saar.de>

Full log


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 25 Jun 2018 12:00:02 +0000
Return-Path: <ralph.ronnquist@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Mon, 25 Jun 2018 14:00:01 +0200 (CEST)
Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id AA9D4F608B0
	for <submit@bugs.devuan.org>; Mon, 25 Jun 2018 13:59:31 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="csLGy76W";
	dkim-atps=neutral
Received: by mail-io0-f172.google.com with SMTP id k16-v6so9514259ioa.8
        for <submit@bugs.devuan.org>; Mon, 25 Jun 2018 04:57:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=to:from:subject:message-id:date:user-agent:mime-version
         :content-language:content-transfer-encoding;
        bh=minbgU7JU/Kyex7ix3n2ADz57NaGhu0s9b4afP5gtu8=;
        b=csLGy76WQx65aTSOu8pfLr/irqYUguflnSsr3jhLQxfihBB8EXVP5pn3L8hPkzLtLp
         EzppBYKoNJ7zBBQRiIUMUucI2gL1YMlZy67qc+/Ce0/ypsJKCV0UoDCEooN/yytypomG
         8KOPxYamv6csoxj08Qg6fSm8jzU5MN/R1FtW73v7WGIdb1m3YV6l0qwvb6vYc7k8FQ4r
         Noj32hW5vMpmBowEq8Tto4RqFmZYschgBbLhTFb2OwKMmGypWVO7W0te5LoUh3ZIWbi5
         PcXie7qZSZtwaSqQFtM6zcYNjvEQFsCX2qdDlgx7ybetd9mU+tvnVvgmc2gfO/Y++ulc
         6L3w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:message-id:date:user-agent
         :mime-version:content-language:content-transfer-encoding;
        bh=minbgU7JU/Kyex7ix3n2ADz57NaGhu0s9b4afP5gtu8=;
        b=jye0wQIo0mxohNZV6WRsNwvLF2RZyOxOGrCQMcF4MsN2PcgD2ZpuIi+2iDfWmLDaP1
         gE+ZfTFGZBgw2uyVwunoE+NOtkeoY4yADHvu7AfwlPprNY/bdcNPprx9XtYGM+bOzYAI
         wqqGS4qv2QuNanqxUZJyuU4D5TM1xZkL1t2BPMr2UJgfaYpONdeS9/eLTAMhw7etxta6
         kWyBOxEuyZN5o/JXj5mQEYaTeTVylK/RlWWda5KHzB/8/PfEZ4sbm0ScdqyX9uW7RkOu
         uBq6JyXJcBGCcxqWgepZ23X+ESu9SNn5QgILJHXDLMzW1MhHaSDSYMlbALW+vWF6yXnp
         wL5w==
X-Gm-Message-State: APt69E2/h2kq9MTVOHPth4gNUWpWDY75AJFx9Ky6pkO+HKvdVvj5vHi1
	/JdrxsreIlsT3IYLeUxF9qnAVMrb
X-Google-Smtp-Source: AAOMgpcvzpoN2qv/d80eTJWUk8JjDSH/TEZpMGkur1hrenv1PS0jP8mOv/iYj2I1schSjeG2nXKvLQ==
X-Received: by 2002:a6b:2b4d:: with SMTP id r74-v6mr9737952ior.214.1529927830119;
        Mon, 25 Jun 2018 04:57:10 -0700 (PDT)
Received: from [192.168.103.24] (60-242-139-200.static.tpgi.com.au. [60.242.139.200])
        by smtp.gmail.com with ESMTPSA id o193-v6sm3888380itb.41.2018.06.25.04.57.08
        for <submit@bugs.devuan.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 25 Jun 2018 04:57:09 -0700 (PDT)
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
From: Ralph Ronnquist <ralph.ronnquist@gmail.com>
Subject: hdparm rules use DEVNAME only
Message-ID: <af42ee76-e4ba-f95c-b4a7-4172bd9a8de7@gmail.com>
Date: Mon, 25 Jun 2018 21:56:31 +1000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,
	RCVD_IN_SORBS_SPAM,SPF_PASS,WEIRD_QUOTING autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org
Package: eudev
Version: 3.2.2-13

Lodged on behalf of @kalle-delhaye:
https://dev1galaxy.org/viewtopic.php?pid=10379#p10379

""""
One week later - I've found the (or my?) fault.

When I upgraded my server from Debian Jessie to Devuan Ascii i reused 
the working settings in hdparm.conf.
But in Ascii, hdparm.conf is read by a script started by a eudev rule 
and is working with /dev/sd? definitions only.
No /dev/disk/by-label, no /dev/disk/by-uuid or any other links in /dev/disk.

That's because the little eudev script reading hdparm.conf is using only 
the $DEVNAME environment variable from eudev to parse the settings. And 
$DEVNAME is /dev/sda, for example.

The sd? links in /dev can change for a specific disk, so I think its not 
a good idea to remove the by-label or by-uuid posibilities from hdparm.conf.
As a workaround you can make your own eudev rule for partitions using 
the variable $ID_FS_LABEL or $ID_FS_UUID for example.
I will try this when I find some time.
""""

Ralph.


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Nov 25 09:29:15 2024;