New: busybox vs. initscripts date weirdness
http://bugs.openembedded.org/show_bug.cgi?id=1441
Summary: busybox vs. initscripts date weirdness
Product: Openembedded
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Distributions
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
I'm not sure how far back this problem may extend into the busybox versions, but since the body of initscripts is in OE, and not a downloadable package source, this issue may be an OE issue.
The initscripts save_rtc.sh currently formats the /etc/timestamp as "%2m%2d%2H%2M%Y", while busybox-1.2.1 will only accept a string formatted as "%2m%2d%2H%2M00%4Y"
One difference in the strings being that the seconds must be present and have a value of zero. The other difference is that a 4 digit year is required. Feeding busybox date with a string outside of those two conditions results in "invalid date".
I suggest that the initscripts save_rtc.sh be patched as:
============================================================
--- packages/initscripts/initscripts-1.0/save-rtc.sh 353d869c5dce5dc015a458b99ee7526623ac136b
+++ packages/initscripts/initscripts-1.0/save-rtc.sh 72506cf424a935fe56e1b11be5e4b9acbc50e513
@@ -12,5 +12,5 @@ then
then
echo "Will restore RCT from /etc/timestamp on next boot" echo "Delete that file to disable this feature."
- date +%2m%2d%2H%2M%Y > /etc/timestamp
+ date +%2m%2d%2H%2M00%4Y > /etc/timestamp
fi
Signature · 3 lines
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.