2 export DRACUT_SYSTEMD
=1
3 if [ -f /dracut-state.sh
]; then
4 .
/dracut-state.sh
2>/dev
/null
6 type getarg
>/dev
/null
2>&1 || .
/lib
/dracut-lib.sh
8 source_conf
/etc
/conf.d
10 make_trace_mem
"hook pre-udev" '1:shortmem' '2+:mem' '3+:slab'
11 # pre pivot scripts are sourced just before we doing cleanup and switch over
13 getarg
'rd.break=pre-udev' 'rdbreak=pre-udev' && emergency_shell
-n pre-udev
"Break pre-udev"
16 _modprobe_d
=/etc
/modprobe.d
17 if [ -d /usr
/lib
/modprobe.d
] ; then
18 _modprobe_d
=/usr
/lib
/modprobe.d
19 elif [ -d /lib
/modprobe.d
] ; then
20 _modprobe_d
=/lib
/modprobe.d
21 elif [ ! -d $_modprobe_d ] ; then
25 for i
in $
(getargs rd.driver.pre
-d rdloaddriver
=); do
29 modprobe
$p 2>&1 | vinfo
35 [ -d /etc
/modprobe.d
] || mkdir
-p /etc
/modprobe.d
37 for i
in $
(getargs rd.driver.blacklist
-d rdblacklist
=); do
41 echo "blacklist $p" >> $_modprobe_d/initramfsblacklist.conf
46 for p
in $
(getargs rd.driver.post
-d rdinsmodpost
=); do
47 echo "blacklist $p" >> $_modprobe_d/initramfsblacklist.conf
51 [ -n "$_do_insmodpost" ] && initqueue
--settled --unique --onetime insmodpost.sh
52 unset _do_insmodpost _modprobe_d
55 export -p > /dracut-state.sh