From 4ce38419808566708beb8be2350b028b69c531d9 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 18 Apr 2012 13:08:12 +0200 Subject: [PATCH] 99shutdown/shutdown.sh: export PATH --- modules.d/99shutdown/shutdown.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules.d/99shutdown/shutdown.sh b/modules.d/99shutdown/shutdown.sh index 45345a4..aa0a81f 100755 --- a/modules.d/99shutdown/shutdown.sh +++ b/modules.d/99shutdown/shutdown.sh @@ -7,10 +7,9 @@ # Copyright 2011, Red Hat, Inc. # Harald Hoyer -#!/bin/sh -. /lib/dracut-lib.sh export TERM=linux -PATH=/usr/sbin:/usr/bin:/sbin:/bin +export PATH=/usr/sbin:/usr/bin:/sbin:/bin +. /lib/dracut-lib.sh trap "emergency_shell --shutdown shutdown Signal caught!" 0 getarg 'rd.break=pre-shutdown' && emergency_shell --shutdown pre-shutdown "Break before pre-shutdown"