Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#41566 - [linux] delay the directory deletion till reboot.
Attached to Project:
Arch Linux
Opened by Christian Rebischke (Shibumi) - Thursday, 14 August 2014, 17:46 GMT
Last edited by Thomas Bächler (brain0) - Thursday, 14 August 2014, 19:51 GMT
Opened by Christian Rebischke (Shibumi) - Thursday, 14 August 2014, 17:46 GMT
Last edited by Thomas Bächler (brain0) - Thursday, 14 August 2014, 19:51 GMT
|
DetailsHello,
I have a feature Request for the PKGBUILD for the linux-kernel. I hate this moment when I upgrade the linux-kernel and want to mount an new usb-stick. It does not work, because you delete the old kernel dir before reboot: So please could you delay the direction deletion of the /lib/modules/`uname -r` ? When you delay the direction deletion of the old kernel version till reboot this would fix this issue. Is this possible? see also: "https://unix.stackexchange.com/questions/30100/is-it-normal-that-a-restart-is-required-to-mount-usb-after-a-kernel-upgrade" nice greetings, Chris |
This task depends upon
This isn't feasible and it's really just a silly hack. The package is replaced with the new version and all files are removed in the process. pacman has no ability to remove *some* of the files on upgrade, and trying to trick it into doing so would probably just result in undue pain and files left behind.
> see also: "https://unix.stackexchange.com/questions/30100/is-it-normal-that-a-restart-is-required-to-mount-usb-after-a-kernel-upgrade"
If you don't want to reboot, then don't upgrade the kernel. Add "linux" to IgnorePkg and explicitly upgrade when it's convenient for you to do a reboot.
relevant: https://bugs.archlinux.org/task/16702
I mean there is only one directory that must protected till reboot and then deleted.
I am not a kernel-developer so sorry when I am wrong with my idea :)
Don't upgrading the kernel is not an option.
But maybe you're right with your opinion. I have no idea howto delay this deletion till reboot. A cronjob for this would be overkill :S
https://wiki.archlinux.org/index.php/Kernel_modules#Loading
...could you expand on this?
> Other distributions has this "silly hack" included too.
Well, *SUSE* does this. Do other distros do this? How do they accomplish it?