Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to unmount when based on broken image #60

Open
adur1990 opened this issue May 23, 2022 · 0 comments
Open

Unable to unmount when based on broken image #60

adur1990 opened this issue May 23, 2022 · 0 comments

Comments

@adur1990
Copy link

Hi there,

this might be a somewhat very special issue, but something that I encountered working with once or twice.

When you start pimod with a FROM statement and stop it with CTRL-C, pimod will stop gracefully.
The subsequent passes, however, will be stuck:

Working inplace BTree.img.
add map loop1p1 (253:2): 0 87851 linear 7:1 8192
device-mapper: reload ioctl on loop1p2 (253:3) failed: Invalid argument
create/reload failed on loop1p2

This error seems legit, as the FROM statement was interruppted in the first run resulting in a damages image.
But then the following happens:

./modules/chroot.sh: line 32: CHROOT_MOUNT: unbound variable
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
umount: bad usage
Try 'umount --help' for more information.
./modules/chroot.sh: line 42: CHROOT_MOUNT: unbound variable
### Error: "BTree.img" returned 1, cleaning up...

This should be handled gracefully I guess.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant