Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 103332

Summary: enhanced linuxrc script for fstab and unionfs
Product: Gentoo Hosted Projects Reporter: postmodern <brodigan>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: enhancement CC: hoffbrinkle
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: linuxrc patch

Description postmodern 2005-08-22 06:22:03 UTC
the linuxrc script supplied with sys-kernel/genkernel-3.3.5 formats /etc/fstab
improperly when handling Unionfs mounts.

Reproducible: Always
Steps to Reproduce:
1. make a livecd and have the initramfs generated with genkerenl --unionfs-dev
2.
3.

Actual Results:  
/etc/fstab is always empty

Expected Results:  
a formated /etc/fstab
Comment 1 postmodern 2005-08-22 06:22:43 UTC
Created attachment 66539 [details, diff]
linuxrc patch
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-28 11:35:14 UTC
Sorry if I am just being dense (as I'm sure that I am) but I don't see a
difference between what is there before the patch and what is there afterwards.
 The sed looks the same.  What exactly is this changing?
Comment 3 postmodern 2005-10-28 12:25:17 UTC
Before the patch cat is reading the same file that the command is outputting to.
This produces an fstab that's empty.

All I did was output to "fstab.new" and mv's it to "fstab".
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-28 12:51:49 UTC
OK... so I was just being dense... makes perfect sense now... thanks...

I've added this to CVS, so it should show up in the next version of genkernel...
Comment 5 Eric Edgar (RETIRED) gentoo-dev 2005-11-22 12:07:36 UTC
 fixed in 3.3.7