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