network: don't use "ifup -m"
[dracut.git] / modules.d / 98dracut-systemd / dracut-pre-mount.sh
blobae5112861f1d2f23f6981db5b3c43bb6f035aa0a
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-mount" '1:shortmem' '2+:mem' '3+:slab'
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
17 export -p > /dracut-state.sh
19 exit 0