projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c25c0ef
)
Enable binfmt_misc and do not use fstab
author
Marius Gavrilescu
<marius@ieval.ro>
Mon, 27 Apr 2015 20:06:05 +0000
(23:06 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Mon, 27 Apr 2015 20:06:05 +0000
(23:06 +0300)
ex/makevm
patch
|
blob
|
blame
|
history
diff --git
a/ex/makevm
b/ex/makevm
index aadc8612f723cdb419c8e95dd9606b9c41914318..b9ceaaaa38c196a504b714d750c1b930415c75dc 100755
(executable)
--- a/
ex/makevm
+++ b/
ex/makevm
@@
-5,15
+5,12
@@
mount /proc -o bind vm/proc
multistrap -f ex/vm.conf
ln -s vm/usr/bin/mawk vm/bin/awk
echo '/sbin/poweroff -f' > vm/.bash_logout
multistrap -f ex/vm.conf
ln -s vm/usr/bin/mawk vm/bin/awk
echo '/sbin/poweroff -f' > vm/.bash_logout
-cat > vm/etc/fstab <<EOF
-virtfs /mnt 9p trans=virtio 0 0
-tmpfs /tmp tmpfs defaults 0 0
-procfs /proc proc defaults 0 0
-EOF
cat > vm/.profile <<EOF
cat > vm/.profile <<EOF
-mount /mnt
-mount /tmp
-mount /proc
+mount -t 9p -o trans=virtio virtfs /mnt
+mount -t ramfs ramfs /tmp
+mount -t proc proc /proc
+mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
+echo ':jar:M::PK\x03\x04::/usr/bin/jexec:' > /proc/sys/fs/binfmt_misc/register
[ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 -echo
cd /mnt
export PS1="# "
[ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 -echo
cd /mnt
export PS1="# "
This page took
0.010359 seconds
and
4
git commands to generate.