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 mount" '1:shortmem' '2+:mem' '3+:slab'
12 getarg
'rd.break=mount' -d 'rdbreak=mount' && emergency_shell
-n mount
"Break mount"
13 # mount scripts actually try to mount the root filesystem, and may
14 # be sourced any number of times. As soon as one suceeds, no more are sourced.
17 if ismounted
"$NEWROOT"; then
18 usable_root
"$NEWROOT" && break;
21 for f
in $hookdir/mount
/*.sh
; do
23 if ismounted
"$NEWROOT"; then
24 usable_root
"$NEWROOT" && break;
25 warn
"$NEWROOT has no proper rootfs layout, ignoring and removing offending mount hook"
32 [ $i -gt 20 ] && action_on_fail
"Can't mount root filesystem" && break
35 export -p > /dracut-state.sh