Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
4d915099
Commit
4d915099
authored
Feb 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f4c498c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
t/qemu-runlinux
t/qemu-runlinux
+12
-8
No files found.
t/qemu-runlinux
View file @
4d915099
...
...
@@ -44,15 +44,18 @@ if [ $$ == 1 ]; then
# XXX source bashrc ?
# FIXME "/dev/tty: No such device or address"
test
-n
"
$QDIR
"
||
qdie
"QDIR=?"
cd
"
$QDIR
"
test
-n
"
$QRUN
"
||
qdie
"QRUN=?"
set
+e
$QRUN
test
-n
"
$CWD
"
||
qdie
"CWD=?"
cd
"
$CWD
"
test
$#
!=
0
||
qdie
"no program to run"
cat
/proc/cmdline
env
set
+e
-x
"
$@
"
# run argv[1:] passes to init
echo
"exit code:
$?
"
qshutdown
sleep
1d
# give time to shutdown
qdie
"unreachable"
fi
...
...
@@ -94,8 +97,9 @@ qemu-system-$arch \
\
-kernel
$kernel
\
-append
"ro rootfstype=9p rootflags=trans=virtio
\
console=ttyS0 init=
$(
realpath
$0
)
QDIR=
$dir
QRUN=
$prog
\
HOME="
$HOME
" LANG="
$LANG
" TERM="
$TERM
" PATH="
$PATH
"
\
console=ttyS0 init="
$(
realpath
$0
)
"
\
CWD="
$dir
" HOME="
$HOME
" LANG="
$LANG
" TERM="
$TERM
" PATH="
$PATH
"
\
--
$prog
\
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment