[buildiso] graceful exit after errors #104
Labels
No labels
Done
bug
buildiso
buildpkg
buildtree
critical
deployiso
duplicate
enhancement
help wanted
in progress
invalid
manjaro-chroot
note
old-not-relevant
optional
question
sonar
todo
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: ryanvade
An enhancement suggestion. If an error occurs it would probably be good if cleanup would occur. Remove stale files that can't be removed unless you reboot, for example if pacman can't find a package you want installed to the image.
Created by: ryanvade
A similar system would be good if you stop the proccess during building ( ctrl + C for example)
Created by: philmmanjaro
@ryanvade: please post about your error you're still facing, as we thought we already implemented it with https://github.com/manjaro/manjaro-tools/issues/78.
Created by: udeved
@ryanvade
Which version do you use?
The devel branch should be fine, I changed yesterday some checks.
buildiso is not run if it fails profile check or buildset sanity check.
Created by: ryanvade
For example, if you add a package to the list which is not able to be installed then you still get image files that can't be deleted due to "Stale File" issues. I also think pressing ctrl + c should stop the application not just the current process. Its not just errors, if a user wants to stop for some reason shouldn't the tools cleanup?
Created by: udeved
Which version do you use?
What you describe does not happen with git devel version.
Created by: ryanvade
The last time it happened was with manjaro-git-tools built two days ago. I have not had the issue since.
Created by: ryanvade
Just for record this is what I mean:
Caused by cancelling a previous build then trying again.
Created by: philmmanjaro
For that we need a proper pre-unmount before starting a session.
Created by: udeved
Can also be done with umount_handler at build_image calls.
Created by: philmmanjaro
Great, then we call that!
Created by: udeved
I think I already added it in pkglist branch.
Created by: philmmanjaro
Ok, then simply backport it to master.