Full rewrite.
This commit is contained in:
parent
2cba1a8a10
commit
de4535e5e6
15
bin/compile
15
bin/compile
|
@ -12,25 +12,10 @@ fi
|
|||
|
||||
. "$BP/bin/read_config"
|
||||
|
||||
mkdir "$CACHE/app_root"
|
||||
find "$APP" ! -path "$APP" -maxdepth 1 -exec mv "{}" "$CACHE/app_root" \;
|
||||
mv "$CACHE/app_root" "$APP/root"
|
||||
|
||||
tar -xvzf "$BP/uml.tar.gz" -C "$APP"
|
||||
mkdir "$APP/shadow_root"
|
||||
mkdir "$APP/shadow_mount"
|
||||
dd if=/dev/zero of="$APP/shadow_root.img" bs=1048576 count="$FS_SIZE"
|
||||
/sbin/mke2fs "$APP/shadow_root.img"
|
||||
wget http://ftp.debian.org/debian/pool/main/c/criu/criu_3.6-2_amd64.deb -O "$APP/criu.deb"
|
||||
uml_run "rm /var/lib/dpkg/lock /var/lib/dpkg/triggers/Lock; rm -r /var/cache/apt/archives/*; umount /app; dpkg -i '$APP/criu.deb'; apt-get -f install; mount --bind '$APP/root' /app; bash /app/install.sh"
|
||||
|
||||
mkdir "$APP/.profile.d"
|
||||
cp "$BP/bin/read_config" "$APP/.profile.d"
|
||||
cp "$BP/bin/redirect_PORT" "$APP/.profile.d"
|
||||
|
||||
cp "$APP/root/Procfile" "$APP/Procfile"
|
||||
fix_procfile "$APP/Procfile"
|
||||
|
||||
if test -f "$APP/root/.slirprc"
|
||||
then cp "$APP/root/.slirprc" "$APP"
|
||||
fi
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
echo "$1" > "$APP/uml_command"
|
||||
TEMP="$APP" "$APP/uml/uml" root=/dev/root con0=fd:1,fd:1 rw rootflags=/ rootfstype=hostfs init="$APP/uml/init" eth0=slirp,10.0.2.15,"$APP/uml/slirp" mem=${MEM}M quiet app="$APP"
|
||||
rm "$APP/fifo"
|
||||
rm "$APP/uml_command"
|
BIN
uml.tar.gz
BIN
uml.tar.gz
Binary file not shown.
Loading…
Reference in New Issue