mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
tests: udev - assume /etc/machine-id rather than /etc/hosts
On todays machines /etc/hosts is not mandatory. /etc/machine-id is though, so let's rely on that instead. This makes the udev tests pass again for me.
This commit is contained in:
@@ -1233,8 +1233,8 @@ EOF
|
||||
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
|
||||
exp_name => "there",
|
||||
rules => <<EOF
|
||||
TEST=="/etc/hosts", SYMLINK+="there"
|
||||
TEST!="/etc/hosts", SYMLINK+="notthere"
|
||||
TEST=="/etc/machine-id", SYMLINK+="there"
|
||||
TEST!="/etc/machine-id", SYMLINK+="notthere"
|
||||
EOF
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user