mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
Remove /etc/hostid missing warning
No longer print the following warning to the console when the /etc/hostid file is missing. This is the expected default behavior. Keeping the hostid in sync with the initramfs is now accomplished by creating the /etc/hostid in the initramfs not on the system. SPL: The /etc/hostid file is not found. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
39a87c6921
commit
6b3b569df3
@ -414,12 +414,8 @@ hostid_read(void)
|
|||||||
|
|
||||||
file = kobj_open_file(spl_hostid_path);
|
file = kobj_open_file(spl_hostid_path);
|
||||||
|
|
||||||
if (file == (struct _buf *)-1) {
|
if (file == (struct _buf *)-1)
|
||||||
printk(KERN_WARNING
|
|
||||||
"SPL: The %s file is not found.\n",
|
|
||||||
spl_hostid_path);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
result = kobj_get_filesize(file, &size);
|
result = kobj_get_filesize(file, &size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user