Arch Linux

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!
Tasklist

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
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hello,
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

Closed by  Thomas Bächler (brain0)
Thursday, 14 August 2014, 19:51 GMT
Reason for closing:  Won't fix
Comment by Dave Reisner (falconindy) - Thursday, 14 August 2014, 17:59 GMT
> So please could you delay the direction deletion of the /lib/modules/`uname -r` ?
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
Comment by Christian Rebischke (Shibumi) - Thursday, 14 August 2014, 18:09 GMT
Why this should be not feasible? Other distributions has this "silly hack" included too.
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
Comment by Doug Newgard (Scimmia) - Thursday, 14 August 2014, 19:09 GMT
Just load the module at boot, problem solved.

https://wiki.archlinux.org/index.php/Kernel_modules#Loading
Comment by Dave Reisner (falconindy) - Thursday, 14 August 2014, 19:30 GMT
> Don't upgrading the kernel is not an option.
...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?
Comment by Thomas Bächler (brain0) - Thursday, 14 August 2014, 19:51 GMT
When you update the kernel, reboot. It's that simple.

Loading...