Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mattmadeofpasta
redoxer
Commits
9d56e002
Verified
Commit
9d56e002
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Run each redoxer instance in a separate location
parent
ab800815
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
redoxer.sh
+19
-13
19 additions, 13 deletions
redoxer.sh
with
19 additions
and
13 deletions
redoxer.sh
+
19
−
13
View file @
9d56e002
...
@@ -79,7 +79,7 @@ function redoxfs_mount {
...
@@ -79,7 +79,7 @@ function redoxfs_mount {
return
1
return
1
fi
fi
redoxfs
build/redoxer.bin build/redoxer
redoxfs
"
$1
"
"
$2
"
while
!
redoxfs_mounted
"
$2
"
while
!
redoxfs_mounted
"
$2
"
do
do
if
!
pgrep redoxfs
>
/dev/null
if
!
pgrep redoxfs
>
/dev/null
...
@@ -90,9 +90,6 @@ function redoxfs_mount {
...
@@ -90,9 +90,6 @@ function redoxfs_mount {
done
done
}
}
redoxfs_unmount build/redoxer
rm
-rf
build/redoxer build/redoxer.bin build/redoxer.log
name
=
"
$(
basename
"
$1
"
)
"
name
=
"
$(
basename
"
$1
"
)
"
if
[
!
-f
build/bootloader.bin
]
if
[
!
-f
build/bootloader.bin
]
...
@@ -127,18 +124,27 @@ then
...
@@ -127,18 +124,27 @@ then
mv
build/base.bin.partial build/base.bin
mv
build/base.bin.partial build/base.bin
fi
fi
cp
build/base.bin build/redoxer.bin
uuid
=
"
$(
uuidgen
)
"
function
cleanup
{
redoxfs_unmount
"build/
${
uuid
}
"
rm
-rf
"build/
${
uuid
}
"
"build/
${
uuid
}
.bin"
"build/
${
uuid
}
.log"
}
trap
cleanup EXIT
cleanup
cp
build/base.bin
"build/
${
uuid
}
.bin"
mkdir
-p
build/
redoxer
mkdir
-p
"
build/
${
uuid
}
"
redoxfs_mount build/
redoxer
.bin
build/
redoxer
redoxfs_mount
"
build/
${
uuid
}
.bin
"
"
build/
${
uuid
}
"
cp
"target/
${
TARGET
}
/release/redoxerd"
"build/
redoxer
/bin/redoxerd"
cp
"target/
${
TARGET
}
/release/redoxerd"
"build/
${
uuid
}
/bin/redoxerd"
for
arg
in
"
$@
"
for
arg
in
"
$@
"
do
do
echo
"
${
arg
}
"
>>
build/
redoxer
/etc/redoxerd
echo
"
${
arg
}
"
>>
"
build/
${
uuid
}
/etc/redoxerd
"
done
done
redoxfs_unmount build/
redoxer
redoxfs_unmount
"
build/
${
uuid
}
"
qemu-system-x86_64
\
qemu-system-x86_64
\
-enable-kvm
\
-enable-kvm
\
...
@@ -147,15 +153,15 @@ qemu-system-x86_64 \
...
@@ -147,15 +153,15 @@ qemu-system-x86_64 \
-m
2048
\
-m
2048
\
-smp
4
\
-smp
4
\
-serial
mon:stdio
\
-serial
mon:stdio
\
-chardev
file,id
=
log,path
=
build/
redoxer
.log
\
-chardev
file,id
=
log,path
=
"
build/
${
uuid
}
.log
"
\
-device
isa-debugcon,chardev
=
log
\
-device
isa-debugcon,chardev
=
log
\
-device
isa-debug-exit
\
-device
isa-debug-exit
\
-netdev
user,id
=
net0
\
-netdev
user,id
=
net0
\
-device
e1000,netdev
=
net0
\
-device
e1000,netdev
=
net0
\
-nographic
\
-nographic
\
-vga
none
\
-vga
none
\
-drive
file
=
build/
redoxer
.bin,format
=
raw
-drive
file
=
"
build/
${
uuid
}
.bin
"
,format
=
raw
echo
echo
echo
"## redoxer
$@
##"
echo
"## redoxer
$@
##"
cat
build/
redoxer
.log
cat
"
build/
${
uuid
}
.log
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment