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:
078acb5
)
TEST-20-NFS: get shell in test root for rd.shell
author
Harald Hoyer
<harald@redhat.com>
Mon, 2 Apr 2012 07:03:25 +0000
(09:03 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 2 Apr 2012 07:03:25 +0000
(09:03 +0200)
test/TEST-20-NFS/client-init.sh
patch
|
blob
|
history
diff --git
a/test/TEST-20-NFS/client-init.sh
b/test/TEST-20-NFS/client-init.sh
index
f9e6de3
..
9c56196
100755
(executable)
--- a/
test/TEST-20-NFS/client-init.sh
+++ b/
test/TEST-20-NFS/client-init.sh
@@
-3,7
+3,11
@@
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
exec >/dev/console 2>&1
export TERM=linux
export PS1='initramfs-test:\w\$ '
+CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
+strstr() { [ "${1#*$2*}" != "$1" ]; }
+
stty sane
+strstr "$CMDLINE" "rd.shell" && sh -i
echo "made it to the rootfs! Powering down."
while read dev fs fstype opts rest; do
[ "$fstype" != "nfs" -a "$fstype" != "nfs4" ] && continue