add scripts to mount / umlstart and umount losetup files
Signed-off-by: Nico Schottelius <nico@denkbrett.schottelius.org>
This commit is contained in:
parent
94968996c2
commit
8601590ac0
3 changed files with 24 additions and 0 deletions
8
lo-jfs-mount.sh
Executable file
8
lo-jfs-mount.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/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
|
9
lo-uml-start.sh
Executable file
9
lo-uml-start.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/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
|
||||||
|
|
7
lo-umount.sh
Executable file
7
lo-umount.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
hier=$(dirname $0)
|
||||||
|
hierabs=$(cd "$hier" && pwd -P)
|
||||||
|
|
||||||
|
sudo umount $(dirname $0)/dst
|
||||||
|
sudo losetup -d /dev/loop0
|
Loading…
Reference in a new issue