]>
Commit | Line | Data |
---|---|---|
510aecdb | 1 | #!/bin/sh |
967cc19a | 2 | |
510aecdb HH |
3 | export DRACUT_SYSTEMD=1 |
4 | if [ -f /dracut-state.sh ]; then | |
5 | . /dracut-state.sh 2>/dev/null | |
6 | fi | |
7 | type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh | |
8 | ||
9 | source_conf /etc/conf.d | |
10 | ||
52c295c1 | 11 | make_trace_mem "hook pre-mount" '1:shortmem' '2+:mem' '3+:slab' '4+:komem' |
510aecdb HH |
12 | # pre pivot scripts are sourced just before we doing cleanup and switch over |
13 | # to the new root. | |
14 | getarg 'rd.break=pre-mount' 'rdbreak=pre-mount' && emergency_shell -n pre-mount "Break pre-mount" | |
15 | source_hook pre-mount | |
16 | ||
17 | export -p > /dracut-state.sh | |
18 | ||
510aecdb | 19 | exit 0 |