Removed UML redirect

This commit is contained in:
sleirsgoevy 2017-12-10 22:10:56 +03:00
parent 6fd70a1e56
commit 9b96d9b4ac
920 changed files with 0 additions and 6273 deletions

Binary file not shown.

View File

@ -1,35 +0,0 @@
#!/bin/bash -x
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
mount -t devtmpfs udev /dev
mount -t proc proc /proc
mount -t sysfs sysfs /sys
APP="$(sed s/^.*app=// /proc/cmdline)"
mount --bind "$APP/uml/modules" /lib/modules
ifconfig eth0 up
ifconfig eth0 10.0.2.15
route add default dev eth0
modprobe fuse
modprobe ext4
modprobe loop
mount "$APP/shadow_root.img" "$APP/shadow_root" -t ext4
LD_LIBRARY_PATH="$APP/uml" "$APP/uml/unionfs" -o rw,cow "$APP/shadow_root=RW:/=RO" "$APP/shadow_mount"
mount --bind /proc "$APP/shadow_mount/proc"
mount --bind /dev "$APP/shadow_mount/dev"
mount --bind /sys "$APP/shadow_mount/sys"
mkdir "$APP/shadow_mount/app"
mount --bind "$APP/root" "$APP/shadow_mount/app"
chroot "$APP/shadow_mount" bash -c "$(cat "$APP/uml_command")"
umount "$APP/shadow_mount/dev" "$APP/shadow_mount/proc" "$APP/shadow_mount/sys"
umount "$APP/shadow_mount"
umount "$APP/shadow_root"
mount -o remount,ro,sync /dev/root /
halt -f

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More