rpm-software-management / mock

Mock is a tool for a reproducible build of RPM packages.
GNU General Public License v2.0
383 stars 230 forks source link

Swapping between snapshots fail since 1.4.2 #97

Open pmikova opened 7 years ago

pmikova commented 7 years ago

Hey, I've come into trouble since I updated to 1.4.2. (from 1.3), I already solved most of my trouble using --old-chroot, but when I want to swap between snapshots with --rollback-to command, it seems to fail every single time, even though the mock is not used anywhere else at the moment - i can enter the shell, or scrub the lvm without no trouble.

"mock -r fedora-rawhide-x86_64 --old-chroot --rollback-to snapshot"

results in:

ERROR: Command failed: # lvremove -f MOCK_SNAPSHOT_LVM/+mock.fedora-rawhide-x86_64.head Logical volume MOCK_SNAPSHOT_LVM/+mock.fedora-rawhide-x86_64.head contains a filesystem in use.

While trying to solve the issue on my own, I found out it gives no error when I create the snapshots with old version of mock, then update and try to rollback to already created snapshot with 1.3., so there is probably something wrong with creating snapshots (just guessing).

How to reproduce: Init a mock, create one more snapshot and try to switch between them. Does not work with or without the --old-chroot option, same error both times.

xsuchy commented 6 years ago

Hmm I suspect bootstrap feature. I guess it will work now (bootstrap is off by default) and it will re-apper when --bootstrap-chroot is used.

praiskup commented 5 years ago

Can you please retest against mock v1.4.20?

praiskup commented 4 years ago

Seems like https://bugzilla.redhat.com/show_bug.cgi?id=1172199