Commit 8601590a authored by Nico Schottelius's avatar Nico Schottelius

add scripts to mount / umlstart and umount losetup files

Signed-off-by: default avatarNico Schottelius <nico@denkbrett.schottelius.org>
parent 94968996
#!/bin/sh
hier=$(dirname $0)
hierabs=$(cd "$hier" && pwd -P)
sudo losetup -o 32256 /dev/loop0 "$hierabs/debian-hd.img"
sudo fsck.jfs /dev/loop0
sudo mount /dev/loop0 $(dirname $0)/dst
#!/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
#!/bin/sh
hier=$(dirname $0)
hierabs=$(cd "$hier" && pwd -P)
sudo umount $(dirname $0)/dst
sudo losetup -d /dev/loop0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment