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 <[email protected]>

---
 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)
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to