wok-next view linux-dev/stuff/vm-uml.in @ rev 20931

pygobject3 -> python-pygobject (latest); pygobject -> python-pygobject2 (legacy)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Aug 23 08:03:04 2018 +0300 (2018-08-23)
parents
children
line source
1 #!/bin/sh
3 # /etc/inittab: "tty21::respawn:/bin/su -c '/boot/vm-uml 1 /boot/guests/slitaz.img 2 512m' nobody"
4 n=${1:-0}
5 tap=tap$n
6 args="rw root=/dev/null"
7 dev="initrd=$(ls -r /boot/rootfs*.gz | sed q)"
8 if [ -n "$2" ]; then
9 args="ro root=620${3:-1} screen=text sound=noconf"
10 dev="ubd0=$2"
11 fi
13 cd $(dirname $0)
14 ifconfig $tap 192.168.$n.1
15 ./linux-uml-@VERSION@ $dev mem=${4:-512m} fakehd fake_ide ubd=3 con0=fd:0,fd:1 \
16 con=pts ssl=pts eth0=tuntap,$tap,fe:f0:00:00:00:0$n,192.168.$n.1 \
17 $args cpuinfo=$(sed '/model name/!d;s/.*: //;s/ /_/g;q' /proc/cpuinfo)