projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d18bc90
)
30convertfs/convertfs.sh: add check for /usr/bin
author
Harald Hoyer
<harald@redhat.com>
Fri, 24 Feb 2012 13:54:59 +0000
(14:54 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 24 Feb 2012 13:59:18 +0000
(14:59 +0100)
Check if /usr is mounted, by checking for /usr/bin
modules.d/30convertfs/convertfs.sh
patch
|
blob
|
history
diff --git
a/modules.d/30convertfs/convertfs.sh
b/modules.d/30convertfs/convertfs.sh
index ab4e97a942fd266f4f776c6171d2198cf66a1116..69c3b3e34fc4524a83db5eae37174f69fdbc9013 100755
(executable)
--- a/
modules.d/30convertfs/convertfs.sh
+++ b/
modules.d/30convertfs/convertfs.sh
@@
-47,6
+47,11
@@
if ! needconvert; then
exit 0
fi
+if [ -e "$ROOT/usr/bin" ]; then
+ echo "$ROOT/usr/bin does not exist"
+ exit 1
+fi
+
testfile="$ROOT/.usrmovecheck$$"
rm -f "$testfile"
> "$testfile"