]> git.ipfire.org Git - thirdparty/dracut.git/blame - modules.d/98dracut-systemd/dracut-pre-mount.sh
Merge pull request #197 from danimo/update-gitignore
[thirdparty/dracut.git] / modules.d / 98dracut-systemd / dracut-pre-mount.sh
CommitLineData
510aecdb 1#!/bin/sh
967cc19a 2
510aecdb
HH
3export DRACUT_SYSTEMD=1
4if [ -f /dracut-state.sh ]; then
5 . /dracut-state.sh 2>/dev/null
6fi
7type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
8
9source_conf /etc/conf.d
10
52c295c1 11make_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.
14getarg 'rd.break=pre-mount' 'rdbreak=pre-mount' && emergency_shell -n pre-mount "Break pre-mount"
15source_hook pre-mount
16
17export -p > /dracut-state.sh
18
510aecdb 19exit 0