Commit 22dd7e63 authored by James T. Lee's avatar James T. Lee
Browse files

zfs: Don't generate hostid in containers

parent 3cba78e5
...@@ -30,12 +30,14 @@ class nest::base::zfs { ...@@ -30,12 +30,14 @@ class nest::base::zfs {
; ;
} }
exec { 'zgenhostid': unless $facts['is_container'] {
command => 'zgenhostid `hostid`', exec { 'zgenhostid':
creates => '/etc/hostid', command => 'zgenhostid `hostid`',
path => '/usr/bin:/bin', creates => '/etc/hostid',
require => Package['sys-fs/zfs'], path => '/usr/bin:/bin',
notify => Class['::nest::base::dracut'], require => Package['sys-fs/zfs'],
notify => Class['::nest::base::dracut'],
}
} }
file { '/usr/lib/dracut/modules.d/90zfs/zfs-load-key.sh': file { '/usr/lib/dracut/modules.d/90zfs/zfs-load-key.sh':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment