vmbuilder leaves chroot in /tmp on crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
New
|
Undecided
|
Unassigned |
Bug Description
When an error appears vmbuilder interrupts immidiately and leaves the chroot dir in its current state in /tmp.
This can cause serious issue if /dev is still bind-mounted and you try to remove the chroot environment
with something like rm -rf /tmp/tmpXXX/* . This would remove some of the /dev/ entries and renders your installation to fail on next boot.
The best Enhancement would be if vmbuilder hook any errors by default and would always cleanly umount binds and remove temporary created chroot also in failure situations.
Workaround for now:
$ umount /tmp/tmp*/dev/pts
$ umount /tmp/tmp*/dev
$ umount /tmp/tmp*/proc
$ umount /tmp/tmp*
$ umount /tmp/tmp*
In case of something like this:
$mount
...
/tmp/tmpl2EVVR/
...
$ umount /tmp/tmp*
also --tmp option is not working, it says the option is not known.