projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0e7e545
)
Mount /proc inside chroot in ex/makevm to fix openjdk configuration
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 25 Jan 2015 15:40:04 +0000
(17:40 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 25 Jan 2015 15:40:12 +0000
(17:40 +0200)
ex/makevm
patch
|
blob
|
blame
|
history
diff --git
a/ex/makevm
b/ex/makevm
index 91542781451ef2e4cc29b567558aca559b7cf703..c1d8c02303098291217a85692c3fb17a1eabd014 100755
(executable)
--- a/
ex/makevm
+++ b/
ex/makevm
@@
-3,6
+3,8
@@
GROUP=$(getent group www-data | cut -f3 -d:)
USER=$(getent passwd www-data | cut -f3 -d:)
rm -rf vm/ vm.squashfs
USER=$(getent passwd www-data | cut -f3 -d:)
rm -rf vm/ vm.squashfs
+mkdir -p vm/proc/
+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
@@
-26,4
+28,5
@@
install gruntmaster-exec gruntmaster-compile vm/usr/bin/
sed -i -e "s/setgid 65534/setgid $GROUP/" -e "s/setuid 65534/setuid $USER/" vm/usr/bin/gruntmaster-exec
chroot vm update-initramfs -d -k 3.2.0-4-amd64
chroot vm update-initramfs -c -k 3.2.0-4-amd64
sed -i -e "s/setgid 65534/setgid $GROUP/" -e "s/setuid 65534/setuid $USER/" vm/usr/bin/gruntmaster-exec
chroot vm update-initramfs -d -k 3.2.0-4-amd64
chroot vm update-initramfs -c -k 3.2.0-4-amd64
+umount vm/proc
mksquashfs vm vm.squashfs -comp lzo
mksquashfs vm vm.squashfs -comp lzo
This page took
0.010508 seconds
and
4
git commands to generate.