* build initramfs: bad path in inst_rules when --local
@ 2011-09-17 0:11 John Reiser
[not found] ` <4E73E5BB.90208-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: John Reiser @ 2011-09-17 0:11 UTC (permalink / raw)
To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
When dracut-013 --local, then inst_rules tests for a pathname such as
[[ -f /etc/udev/rules.d//ext4/dracut/modules.d/10i18n/10-console.rules ]]
which obviously is bogus: there are two "root" there: /etc and /ext4
[The "/ext4/dracut" is where my --local versions live.]
Such a path never can exist, so something is wrong with the intent.
Analysis:
modules.d/10i18n/module-setup.sh: install_base() calls
inst_rules ${moddir}/10-console.rules
Note no underscore '_' in "${moddir}".
moddir is a global variable that is set by dracut:
for moddir in "$dracutbasedir/modules.d"/[0-9][0-9]*; do
When --local, then dracutbasedir is set in dracut:
dracutbasedir="$(readlink -f ${0%/*})"
Based on both of these, then inst_rules() in dracut-functions does:
for _rule in "$@"; do
<<snip>>
for r in /lib/udev/rules.d /etc/udev/rules.d; do
if [[ -f $r/$_rule ]]; then
which leads to testing a pathname such as
[[ -f /etc/udev/rules.d//ext4/dracut/modules.d/10i18n/10-console.rules ]]
--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: build initramfs: bad path in inst_rules when --local
[not found] ` <4E73E5BB.90208-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
@ 2011-09-22 13:45 ` Harald Hoyer
0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2011-09-22 13:45 UTC (permalink / raw)
To: John Reiser; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On 17.09.2011 02:11, John Reiser wrote:
> When dracut-013 --local, then inst_rules tests for a pathname such as
> [[ -f /etc/udev/rules.d//ext4/dracut/modules.d/10i18n/10-console.rules ]]
> which obviously is bogus: there are two "root" there: /etc and /ext4
> [The "/ext4/dracut" is where my --local versions live.]
> Such a path never can exist, so something is wrong with the intent.
>
> Analysis:
> modules.d/10i18n/module-setup.sh: install_base() calls
> inst_rules ${moddir}/10-console.rules
> Note no underscore '_' in "${moddir}".
>
> moddir is a global variable that is set by dracut:
> for moddir in "$dracutbasedir/modules.d"/[0-9][0-9]*; do
> When --local, then dracutbasedir is set in dracut:
> dracutbasedir="$(readlink -f ${0%/*})"
>
> Based on both of these, then inst_rules() in dracut-functions does:
> for _rule in "$@"; do
> <<snip>>
> for r in /lib/udev/rules.d /etc/udev/rules.d; do
> if [[ -f $r/$_rule ]]; then
> which leads to testing a pathname such as
> [[ -f /etc/udev/rules.d//ext4/dracut/modules.d/10i18n/10-console.rules ]]
>
http://git.surfsite.org/?p=dracut.git;a=commitdiff;h=76f5fa549c483a7a38e4757578480096b94615ac
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-22 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-17 0:11 build initramfs: bad path in inst_rules when --local John Reiser
[not found] ` <4E73E5BB.90208-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
2011-09-22 13:45 ` Harald Hoyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.