mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] i18n: fix udev error due to empty rules file
Date: Fri,  5 Nov 2010 19:31:38 +0300	[thread overview]
Message-ID: <1288974698-21387-1-git-send-email-arvidjaar@gmail.com> (raw)

Empty rule file is causing udev error:

dracut: udevd[99]: can not read '/etc/udev/rules.d/10-console.rules'

Remove file completely instead of truncating it.

Signed-off-by: Andrey Borzenkov <arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

---
 modules.d/10i18n/parse-i18n.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules.d/10i18n/parse-i18n.sh b/modules.d/10i18n/parse-i18n.sh
index 0a58cc2..8f7f8f8 100755
--- a/modules.d/10i18n/parse-i18n.sh
+++ b/modules.d/10i18n/parse-i18n.sh
@@ -35,5 +35,5 @@ if [ -e /dev/tty0 ]; then
     # if the device already exists, yes
     # clear the udev rules and run it
     /lib/udev/console_init /dev/tty0
-    > /etc/udev/rules.d/10-console.rules
+    rm /etc/udev/rules.d/10-console.rules
 fi
-- 
tg: (65d247d..) upstream/02-i18n-udev-rules (depends on: upstream/01-merge-resume)

             reply	other threads:[~2010-11-05 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 16:31 Andrey Borzenkov [this message]
     [not found] ` <1288974698-21387-1-git-send-email-arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-10 14:22   ` [PATCH] i18n: fix udev error due to empty rules file Harald Hoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1288974698-21387-1-git-send-email-arvidjaar@gmail.com \
    --to=arvidjaar-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox