$ ./ubmkuird --help
ubmkuird version 1.3
Build UBLinux initrd UIRD
Usage: ubmkuird [OPTIONS...]
OPTIONS:
-h, --help This help
--show Show dracut cmdline, but not run dracut
--kmod Build initrd with kernel modules only
--addon Build initrd with addon only (see ublinux-uird.conf, ExtraDM line)
-u, --upgrade Take action to upgrade initrd
-H, --hostonly Host-Only mode, install only what is needed for booting the local host
-l, --locales Add locales (use with -e plymouth)
-n, --name Initrd file name
-t, --plymouth_theme=NAME Select theme for Plymouth
Available method NAME:
auto Detect plymouth theme from distrib name
-k, --kernel=NAME Kernel name, to build initrd for it
-c, --config=PATH_FILE Path to config file ublinux-uird (/etc/ublinux-uird.conf.d/ubmkuird.conf)
-C, --configos=FILE Path to config file OS init (ublinux)
-g, --changes=PATH Path to changes for initrd root
-o, --outdir=PATH_DIR Path to finished initrd
-e, --exclude=LIST Exclude from initrd, separator ',' (see /etc/ublinux-uird.conf.d/ubmkuird.conf)
Examples LIST
- All group
no Reset global excluded
KM_base Group kernel modules base
KM_network Group kernel modules network
KM_dev Group kernel modules device
KM_crypto Group kernel modules crypto
KM_compAlg Group kernel modules compressions algoritm
FS_KM Group kernel modules file systems
DM_uird Group UIRD core
DM_base Group UIRD additional base
BIN_base Group all bin's base
BIN_network Group all bin's network
BIN_filesystem Group all bin's filesystems
BIN_extra Group all bin's manual
INST_all Group manual files
ExtraDM Group only options "--addon" only
-L, --logdir=PATH_FILE Path to logs
-m, --kmodpath=PATH Kernel modules path (/lib/modules)
-s, --secure=NUMBER Secure level, from 0 to 5 (paranoic)
Available levels NUMBER:
0 Default level, allow all
1 deny: eval cmdline
2 1 + deny: ub.run
3 2 + deny: internal shells (qs, qse, etc)
4 reserved
5 4 + deny: initrd cmdline parameters except ub.basecfg
-p, --passwd=PASSWORD Add password for initrd root user, without the option password will not be set
Available methods PASSWORD:
*** Get password from current root user and apply if "mkpasswd2" not found
--hash=HASH Password HASH method, default sha512crypt
Available methods HASH:
yescrypt Yescrypt
gost-yescrypt GOST Yescrypt
scrypt scrypt
bcrypt bcrypt
bcrypt-a bcrypt (obsolete 2a version)
* sha512crypt SHA-512
sha256crypt SHA-256
sunmd5 SunMD5
md5crypt MD5
bsdicrypt BSDI extended DES-based crypt(3)
descrypt standard 56 bit DES-based crypt(3)
nt NT-Hash
Examples:
ubmkuird -lu --passwd "ublinux-live" --secure 3
ubmkuird -l --passwd "ublinux-live" --secure 3 -e aria2c -k 5.17.2-5-ublinux -o /boot
ubmkuird -l -c /path/mkuird_ublinux.cfg -d /path/dracut_ublinux.cfg -n ublinux-5.17.2-5 -k 5.17.2-5-ublinux -e aria2c,plymouth -C ublinux
ubmkuird -l -e KM_base,KM_network,KM_dev,KM_crypto,KM_compAlg,kernel-modules -C ublinux
ubmkuird --addon
ubmkuird --kmod
Use for current kernel and low power hardware (without animation boot):
ubmkuird -Hlu --passwd "***" --secure 3 -e KM_network,BIN_network,BIN_extra,plymouth
Use for current kernel and current hardware:
ubmkuird -Hlu --passwd "***" --secure 3 -e KM_network,BIN_network,BIN_extra
. Если этот параметр позволяет пересобирать/обновлять uird на другом
ядре, не меняя более ничего и получая одинаковую итоговую конфигурацию, то это удобно.