| Summary: | net-dns/bind-9.7.1_p2: init script hangs when stopping or restarting when CONFIG_SWAP is not set in kernel config because fuser needs it. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | William Cooke <cookewe+gentoo> |
| Component: | [OLD] Server | Assignee: | Christian Ruppert (idl0r) <idl0r> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | bind+disabled |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Patch to check for SWAP support in the kernel
Patch to check for SWAP support in the kernel |
||
|
Description
William Cooke
2010-10-26 19:05:38 UTC
Created attachment 252081 [details, diff]
Patch to check for SWAP support in the kernel
Attached a patch to check for SWAP support by adding a chroot use flag.
Created attachment 252085 [details, diff]
Patch to check for SWAP support in the kernel
Needed to check for SWAP, not swap in if statement.
(In reply to comment #2) > Created an attachment (id=252085) [details] > Patch to check for SWAP support in the kernel > > Needed to check for SWAP, not swap in if statement. > + linux_config_exists || die "Your kernel sources are unconfigured" Please don't do that ^. On linux_config_exists() returning true, you want to run linux_chkconfig_present SWAP. On linux_config_exists() returning false, you want to warn the user that results are unpredictable. Remember, you don't need kernel sources or a /proc/config.gz on a running Gentoo host. (The easy example is a virtual machine (VPS) that has a kernel managed by something/someone else) Assigning to maintainers. Oh, sorry one more thing. I also question the "die "SWAP support not detected" " statement for similar reasons. You don't need SWAP support on the build host to run bind, Unless there is a buildtime failure. Please run "fuser /chroot/dns" when the init script hangs. |