i18n: fix udev error due to empty rules file
PATCH 1/1 i18n: fix udev error due to empty rules file
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(-)
modules.d/10i18n/parse-i18n.sh +1 -1
@@ -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
Signature · 1 line
tg: (65d247d..) upstream/02-i18n-udev-rules (depends on: upstream/01-merge-resume)
A message that is not in the archive (sent off-list or not yet received): 1288974698-21387-1-git-send-email-arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 17 lines · Andrey Borzenkov
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(-)modules.d/10i18n/parse-i18n.sh +0
-0
modules.d/10i18n/parse-i18n.sh if [ -e /dev/tty0 ]; then · line 39
Quoted 6 lines
modules.d/10i18n/parse-i18n.sh +1
-1@@ -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