FS#27943 - [initscripts] /var/log/boot not updated on mdadm raid
Attached to Project:
Arch Linux
Opened by Jonathan Liu (net147) - Sunday, 15 January 2012, 01:19 GMT
Last edited by Tom Gundersen (tomegun) - Sunday, 15 January 2012, 14:16 GMT
Opened by Jonathan Liu (net147) - Sunday, 15 January 2012, 01:19 GMT
Last edited by Tom Gundersen (tomegun) - Sunday, 15 January 2012, 14:16 GMT
|
Details
Description:
/var/log/boot is not updated booting on mdadm raid. The / partition is mounted as readonly so bootlogd is unable to write to /var/log/boot and silently fails with exit code of 1. Additional info: * initscripts 2012.01.2-1 * mdadm 3.2.2-4 Steps to reproduce: 1. Boot system running on mdadm raid 2. ls -l /var/log/boot and notice that it was not updated |
This task depends upon
if (errno != ENOIOCTLCMD) return -1;
This causes the main() function to return with exit code 1.
This is occurring on two Arch Linux servers i'm running (kernel26-lts 2.6.32.53-1 with root filesystem on mdadm RAID 1).
Seems that TIOCGDEV is only supported for kernel >= 2.6.38.
I have tested with the linux 3.1.9-1 and it works fine there.
I think we just need to add a patch to sysvinit package to also support the older kernel used for kernel26-lts.
As Eric noted kernel26-lts is at its EOL, so this problem will solve itself very soon. I don't think it is a good idea to add any patches to fix old kernels, mainly because I don't think we should give the impression that they are at all supported. Using old kernels on new userspace (such as initscripts/sysvinit) is not a good idea. We try to make an exemption for linux-lts, but that's about it.
If you want the problem solved, I think it would be more effective to submit your patch upstream to sysvinit, they probably want to support older kernels (and I'm a bit surprised that this is broken actually).