network: don't use "ifup -m"
[dracut.git] / modules.d / 98dracut-systemd / dracut-pre-trigger.sh
blobac1ec363e75a6d3ab4263a7b1e2bc3f4aeb3384e
1 #!/bin/sh
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
9 source_conf /etc/conf.d
11 make_trace_mem "hook pre-trigger" "1:shortmem" "2+:mem" "3+:slab"
13 source_hook pre-trigger
15 getarg 'rd.break=pre-trigger' 'rdbreak=pre-trigger' && emergency_shell -n pre-trigger "Break pre-trigger"
17 udevadm control --reload >/dev/null 2>&1 || :
19 export -p > /dracut-state.sh
21 exit 0