double check for mounted overlay-root filesystems before umount #174

Closed
opened 2016-01-12 20:18:49 +00:00 by philm · 2 comments
philm commented 2016-01-12 20:18:49 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

In some rare cases you might start with a dirty system:

==> Cleaning up ...
  -> Deleting chroot 'kde-image'...
  -> Deleting chroot 'root-image'...
rm: cannot remove '/var/lib/manjaro-tools/buildiso/kde-minimal/x86_64/root-image': Device or resource busy
rm: cannot remove '/var/lib/manjaro-tools/buildiso/kde-minimal/x86_64/root-image': Device or resource busy

we should find a way to detect and prevent it ...

*Created by: philmmanjaro* In some rare cases you might start with a dirty system: ``` ==> Cleaning up ... -> Deleting chroot 'kde-image'... -> Deleting chroot 'root-image'... rm: cannot remove '/var/lib/manjaro-tools/buildiso/kde-minimal/x86_64/root-image': Device or resource busy rm: cannot remove '/var/lib/manjaro-tools/buildiso/kde-minimal/x86_64/root-image': Device or resource busy ``` we should find a way to detect and prevent it ...
philm commented 2016-01-12 20:24:09 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I think the cause was the filesystem conflict previous build.
So we need error handling when overlay gets copied my guess.

*Created by: udeved* I think the cause was the filesystem conflict previous build. So we need error handling when overlay gets copied my guess.
philm commented 2016-02-14 22:21:50 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Enter a selection (default=all): 
warning: skipping target: openbox
resolving dependencies...
warning: cannot resolve "manjaro-openbox-minimal", a dependency of "manjaro-lxqt-minimal-settings"
:: The following package cannot be upgraded due to unresolvable dependencies:
      manjaro-lxqt-minimal-settings

:: Do you want to skip the above package for this upgrade? [y/N] 
error: failed to prepare transaction (could not satisfy dependencies)
:: manjaro-lxqt-minimal-settings: requires manjaro-openbox-minimal
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
  -> overlayfs: unmount lxqt-image
==> ERROR: Exit make_image_custom

I have had a typo in the depends of the OB package.
It cleanly unmounts everything for me.

/etc/mtab has no images mounted after error.

*Created by: udeved* ``` Enter a selection (default=all): warning: skipping target: openbox resolving dependencies... warning: cannot resolve "manjaro-openbox-minimal", a dependency of "manjaro-lxqt-minimal-settings" :: The following package cannot be upgraded due to unresolvable dependencies: manjaro-lxqt-minimal-settings :: Do you want to skip the above package for this upgrade? [y/N] error: failed to prepare transaction (could not satisfy dependencies) :: manjaro-lxqt-minimal-settings: requires manjaro-openbox-minimal ==> ERROR: Failed to install packages to new root ==> ERROR: Failed to install all packages -> overlayfs: unmount lxqt-image ==> ERROR: Exit make_image_custom ``` I have had a typo in the depends of the OB package. It cleanly unmounts everything for me. /etc/mtab has no images mounted after error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#174
No description provided.