27 lines
899 B
Diff
27 lines
899 B
Diff
|
From b4664769dc63959c60c459effcf64ba284afdc55 Mon Sep 17 00:00:00 2001
|
||
|
From: Harald Hoyer <harald@redhat.com>
|
||
|
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 <harald@redhat.com>
|
||
|
|
||
|
-#!/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"
|