zfs/contrib/dracut/90zfs
Georgy Yakovlev 0968d689a2 cmd/zgenhostid: replace with simple c implementation
It was discovered that dracut scripts and zgenhostid
always generate little-endian /etc/hostid.

This commit provides simple endianess-aware binary
and updates the scripts to use it.

New features include:
 -f flag to force overwrite.
 -o flag to write to different file (for dracut)
 accepting both 0x01234567 and 01234567 values as input

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Closes #10887
Closes #10925
2020-09-18 12:37:54 -07:00
..
.gitignore Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00
Makefile.am Centralize variable substitution 2020-07-14 17:33:44 -07:00
export-zfs.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
module-setup.sh.in cmd/zgenhostid: replace with simple c implementation 2020-09-18 12:37:54 -07:00
mount-zfs.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
parse-zfs.sh.in cmd/zgenhostid: replace with simple c implementation 2020-09-18 12:37:54 -07:00
zfs-env-bootfs.service.in Move dracut specifics to dracut module 2019-04-02 17:14:39 -07:00
zfs-generator.sh.in bash scripts: use /usr/bin/env for bash shebangs 2020-02-10 13:13:46 -08:00
zfs-lib.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-load-key.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-needshutdown.sh.in Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zfs-rollback-bootfs.service.in Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00
zfs-snapshot-bootfs.service.in Add bootfs.snapshot and bootfs.rollback kernel parameters 2020-05-29 21:16:08 -07:00