[ -d /run/lock ] || mkdir -p -m 0755 /run/lock
if [ -f /dracut-state.sh ]; then
- . /dracut-state.sh || :
+ . /dracut-state.sh 2>/dev/null
fi
-. /lib/dracut-lib.sh
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
source_conf /etc/conf.d
# run scriptlets to parse the command line
export root rflags fstype netroot NEWROOT
export -p > /dracut-state.sh
+exit 0
# ex: ts=8 sw=4 sts=4 et filetype=sh
if [ -f /dracut-state.sh ]; then
- . /dracut-state.sh || :
+ . /dracut-state.sh 2>/dev/null
fi
-. /lib/dracut-lib.sh
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
source_conf /etc/conf.d
getarg 'rd.break=initqueue' 'rdbreak=initqueue' && emergency_shell -n initqueue "Break before initqueue"
export -p > /dracut-state.sh
systemctl isolate initrd-switch-root.target
+exit 0
# ex: ts=8 sw=4 sts=4 et filetype=sh
if [ -f /dracut-state.sh ]; then
- . /dracut-state.sh || :
+ . /dracut-state.sh 2>/dev/null
fi
-. /lib/dracut-lib.sh
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
source_conf /etc/conf.d
# pre pivot scripts are sourced just before we doing cleanup and switch over
cp -avr /lib/systemd/system/dracut*.service /run/systemd/system/
export -p > /dracut-state.sh
+exit 0
# ex: ts=8 sw=4 sts=4 et filetype=sh
if [ -f /dracut-state.sh ]; then
- . /dracut-state.sh || :
+ . /dracut-state.sh 2>/dev/null
fi
-. /lib/dracut-lib.sh
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
source_conf /etc/conf.d
getargbool 0 rd.udev.info -y rdudevinfo && udevadm control --log-priority=info
udevadm control --reload >/dev/null 2>&1 || :
export -p > /dracut-state.sh
+exit 0
# ex: ts=8 sw=4 sts=4 et filetype=sh
if [ -f /dracut-state.sh ]; then
- . /dracut-state.sh || :
+ . /dracut-state.sh 2>/dev/null
fi
-. /lib/dracut-lib.sh
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
source_conf /etc/conf.d
# pre pivot scripts are sourced just before we doing cleanup and switch over
source_hook pre-udev
export -p > /dracut-state.sh
+exit 0