diff --git a/lo-jfs-mount.sh b/lo-jfs-mount.sh new file mode 100755 index 0000000..4c336bf --- /dev/null +++ b/lo-jfs-mount.sh @@ -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 diff --git a/lo-uml-start.sh b/lo-uml-start.sh new file mode 100755 index 0000000..7703812 --- /dev/null +++ b/lo-uml-start.sh @@ -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 + diff --git a/lo-umount.sh b/lo-umount.sh new file mode 100755 index 0000000..35cfb44 --- /dev/null +++ b/lo-umount.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +hier=$(dirname $0) +hierabs=$(cd "$hier" && pwd -P) + +sudo umount $(dirname $0)/dst +sudo losetup -d /dev/loop0