You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
518 B

#!/bin/sh
# upgrade-pre hook: before the upgrade, but after the disks are mounted
echo "starting upgrade-pre hook"
export DRACUT_SYSTEMD=1
if [ -f /dracut-state.sh ]; then
. /dracut-state.sh 2>/dev/null
fi
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
source_conf /etc/conf.d
plymouth change-mode --updates && plymouth system-update --progress=0
getarg 'rd.upgrade.break=pre' 'rd.break=upgrade-pre' && \
emergency_shell -n upgrade-pre "Break before upgrade-pre hook"
source_hook upgrade-pre
exit 0