-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mklive nukes host pseudofs (dev, sys, proc) when interrupted in some circumstances #364
Comments
+1, especially for (3). |
any ideas on this? Not sure how we could ensure everything is done. I don't think |
classabbyamp
added a commit
to classabbyamp/void-mklive
that referenced
this issue
Jan 16, 2024
- add some error handling to `umount_pseudofs` - disable the trap before running `error_out` to stop it running multiple times - add `--one-file-system` to ensure that the `rm -rf` can't screw you fixes void-linux#364
partial solution, maybe? #365 |
classabbyamp
added a commit
to classabbyamp/void-mklive
that referenced
this issue
Feb 13, 2024
- add some error handling to `umount_pseudofs` - disable the trap before running `error_out` to stop it running multiple times - add `--one-file-system` to ensure that the `rm -rf` can't screw you fixes void-linux#364
classabbyamp
added a commit
that referenced
this issue
Feb 15, 2024
- add some error handling to `umount_pseudofs` - disable the trap before running `error_out` to stop it running multiple times - add `--one-file-system` to ensure that the `rm -rf` can't screw you fixes #364
classabbyamp
added a commit
to classabbyamp/void-mklive
that referenced
this issue
Feb 16, 2024
- add some error handling to `umount_pseudofs` - disable the trap before running `error_out` to stop it running multiple times - add `--one-file-system` to ensure that the `rm -rf` can't screw you fixes void-linux#364
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Previously mentioned as a secondary bug in #288)
When interrupting mklive (or when it hits a failure) in some circumstances, it will fail to unmount all or some of the pseudofs bind mounts in
umount_pseudofs
. This causes therm -rf
call inerror_out
to delete anything in the pseudofs bind mounts that remain.In my case, lingering processes in a DKMS build kept the
/dev
bind mount busy, causing most dev nodes on the host to be removed. The main symptoms were the shell screaming about/dev/null
being nonexistent and most programs failing to start; a full system restart was required.A simple reproducer would be
and a
^C
once the target xbps is atBuilding DKMS module 'zfs-2.2.2' for kernel-6.5.13_1...
It seems like there's 3 prongs to that bug
rm
call lacks the--one-file-system
option, which should prevent it deleting anything in pseudofs if all else fails.Anything keeping the
/sys
bind mount busy could also have permanent consequences, like the mangling of efivars on the host.The text was updated successfully, but these errors were encountered: