nsbin/lo-uml-start.sh
Nico Schottelius 8601590ac0 add scripts to mount / umlstart and umount losetup files
Signed-off-by: Nico Schottelius <nico@denkbrett.schottelius.org>
2008-07-30 07:21:20 +02:00

9 lines
194 B
Bash
Executable file

#!/bin/sh
hier=$(dirname $0)
hierabs=$(cd "$hier" && pwd -P)
sudo losetup -o 32256 /dev/loop0 "$hierabs/debian-hd.img"
linux ubd0=/dev/loop0 init=/sbin/cinit "$@"
sudo losetup -d /dev/loop0