projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgraded to iproute2-2.6.35 to fix compile error with new kernel
[hvlinux.git]
/
stage0
/
stage0-install
diff --git
a/stage0/stage0-install
b/stage0/stage0-install
index
20d1f7b
..
fe9b2f7
100755
(executable)
--- a/
stage0/stage0-install
+++ b/
stage0/stage0-install
@@
-1,8
+1,20
@@
-#!/bin/sh
-set -o errexit
+#!/bin/bash
LFS_STAGE=stage0
LFS_STAGE=stage0
+# Let shell functions inherit ERR trap. Same as `set -E'.
+set -o errtrace
+
+# Setting ERR trap does implicit `set -o errexit'.
+trap myerr ERR
+
+function myerr()
+{
+ echo
+ echo "*** An error occured during ${LFS_STAGE}"
+ exit 1
+}
+
# Reading system configuration informations, functions and package versions.
source ../sysinfos
source ../functions
# Reading system configuration informations, functions and package versions.
source ../sysinfos
source ../functions
@@
-21,11
+33,6
@@
echo "Performing pre-install"
# directory of the user.
su - lfs -c "cd ${PWD}; ./install-1"
# directory of the user.
su - lfs -c "cd ${PWD}; ./install-1"
-if [ $? -ne 0 ]; then
- echo "*** An error occured during ${LFS_STAGE}"
- exit 1
-fi
-
echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h"
exit 0
echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h"
exit 0