Skip to content

Commit 015070a

Browse files
moving zgenhostid up - before dracut (#566)
we need to generate hostid before creating initramfs image, otherwise, you may receive the following warning when importing your pool as root: ``` $ sudo zpool status pool: rpool state: ONLINE status: Mismatch between pool hostid and system hostid on imported pool. This pool was previously imported into a system with a different hostid, and then was verbatim imported into this system. action: Export this pool on all systems on which it is imported. Then import it to correct the mismatch. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 sda3 ONLINE 0 0 0 errors: No known data errors ```
1 parent 1d3a8fc commit 015070a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Getting Started/RHEL-based distro/Root on ZFS.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ System Configuration
411411
echo 'filesystems+=" virtio_blk "' >> /etc/dracut.conf.d/zfs.conf
412412
fi
413413

414+
#. Generate host id::
415+
416+
zgenhostid -f -o /etc/hostid
417+
414418
#. Build initrd::
415419

416420
find -D exec /lib/modules -maxdepth 1 \
@@ -425,10 +429,6 @@ System Configuration
425429

426430
fixfiles -F onboot
427431

428-
#. Generate host id::
429-
430-
zgenhostid -f -o /etc/hostid
431-
432432
#. Install locale package, example for English locale::
433433

434434
dnf install -y glibc-minimal-langpack glibc-langpack-en

0 commit comments

Comments
 (0)