From: S.Çağlar Onur Date: Mon, 21 Feb 2011 21:00:44 +0000 (-0500) Subject: adopt to new style rtc X-Git-Tag: mkinitrd-5.1.19.6-1~1 X-Git-Url: http://git.onelab.eu/?p=mkinitrd.git;a=commitdiff_plain;h=13a460689bbd85ae181f87590d78eb7006642b1e adopt to new style rtc --- diff --git a/mkinitrd-5.1.19.6-rtc0.patch b/mkinitrd-5.1.19.6-rtc0.patch new file mode 100644 index 0000000..4e1d84f --- /dev/null +++ b/mkinitrd-5.1.19.6-rtc0.patch @@ -0,0 +1,23 @@ +diff -ur mkinitrd-5.1.19.6.orig/mkinitrd mkinitrd-5.1.19.6/mkinitrd +--- mkinitrd-5.1.19.6.orig/mkinitrd 2011-02-21 15:51:23.000000000 -0500 ++++ mkinitrd-5.1.19.6/mkinitrd 2011-02-21 15:58:39.000000000 -0500 +@@ -1590,7 +1590,8 @@ + mknod $MNTIMAGE/dev/tty c 5 0 + mknod $MNTIMAGE/dev/console c 5 1 + mknod $MNTIMAGE/dev/ptmx c 5 2 +-mknod $MNTIMAGE/dev/rtc c 10 135 ++mknod $MNTIMAGE/dev/rtc0 c 254 0 ++ln -s $MNTIMAGE/dev/rtc0 /dev/rtc + if [ "$(uname -m)" == "ia64" ]; then + mknod $MNTIMAGE/dev/efirtc c 10 136 + fi +@@ -1783,7 +1784,8 @@ + mknod /dev/tty c 5 0 + mknod /dev/console c 5 1 + mknod /dev/ptmx c 5 2 +-mknod /dev/rtc c 10 135 ++mknod /dev/rtc0 c 254 0 ++ln -s /dev/rtc0 /dev/rtc + EOF + if [ "$(uname -m)" == "ia64" ]; then + emit "mknod /dev/efirtc c 10 136" diff --git a/mkinitrd.spec b/mkinitrd.spec index de63ea2..cece526 100644 --- a/mkinitrd.spec +++ b/mkinitrd.spec @@ -91,6 +91,8 @@ Patch64: mkinitrd-5.1.19.6-bz540641-locatemodule-returns-canonical-name.patch Patch70: mkinitrd-5.1.19.6-newer-kernels.patch Patch71: mkinitrd-5.1.19.6-mkdmnod.patch +Patch72: mkinitrd-5.1.19.6-rtc0.patch + ExclusiveOs: Linux Prereq: dev @@ -225,6 +227,7 @@ nash shell used by initrd %patch70 -p1 %patch71 -p1 +%patch72 -p1 %build make LIB=%{_lib}