Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 199701
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Genkernel Maintainers <genkernel@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: loux thefuture <loux.thefuture@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 199701 depends on: Show dependency tree
Bug 199701 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-11-19 20:27 0000
After the "Copying read-write image contents to tmpfs"
if you have directory with space like in gdm-themes (Pirates of Gnome)
when the script list all the subdirectories of /usr it'll have "Pirates of
Gnome"
and he will build symlink for : 
/usr/share/gdm/themes/Pirates 
/of
/Gnome
(same thing for "Gnome Yang" for example)
so i got some wrong symlink inside my system after having boot on my liveCD
/Gnome -> /mnt/livecd/Gnome
/of -> /mnt/livecd/of
...

------- Comment #1 From Jakub Moc (RETIRED) 2007-11-19 20:46:11 0000 -------
What does genkernel/linuxrc have in common with Gnome themes? Please explain
how to reproduce this issue.

------- Comment #2 From loux thefuture 2007-11-19 21:02:52 0000 -------
hello,
to reproduce this issue just build a livecd with gdm-themes inside it
and use genkernel to produce the kernel and initramfs,

when you'll boot on it, linuxrc'll create symlink (after "Coying read-write
image contents to tmpfs") but when listing all subdirectories of x=usr it'll
get (for example) /usr/share/gdm/themes/Pirates of Gnome and it'll produce
symlink for 
/usr/share/gdm/themes/Pirates
/of
/Gnome
because of the space inside the directory name
this is not a gdm-themes issue but
a linuxrc issue which does list correctly all subdirectories
(gdm-themes is one of them)
loux

------- Comment #3 From Jakub Moc (RETIRED) 2007-11-20 21:42:48 0000 -------
catalyst - is this yours, or... ? I fail to get what does some Gnome stuff w/
stupid spaces in path have in common w/ genkernel really.

------- Comment #4 From Andrew Gaffney 2007-11-20 21:59:31 0000 -------
Yeah, I think this is technically us. The linuxrc in the genkernel initramfs
does some "magic" tmpfs voodoo when booting a CD. I believe this culprit is the
following line in generic/linuxrc:

# List all subdirectories of x
for directory in `find "${NEW_ROOT}/${FS_LOCATION}/${x}" -type d 2>/dev/null`

This should probably be something like the following to account for directories
with whitespace in the name

find "${NEW_ROOT}/${FS_LOCATION}/${x}" -type d 2>/dev/null | while read
directory

------- Comment #5 From Andrew Gaffney 2007-11-24 05:35:19 0000 -------
This is fixed in SVN and will be in the next release.

------- Comment #6 From Chris Gianelloni (RETIRED) 2007-11-28 22:32:08 0000 -------
This should be done in 3.4.9_pre10 which will be hitting the tree soon.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug