Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150880 - /mnt/livecd/etc/inittab is different to /etc/inittab used when booting.
Summary: /mnt/livecd/etc/inittab is different to /etc/inittab used when booting.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: GNAP (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Network Appliance Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 05:21 UTC by Richard Scott
Modified: 2009-08-10 12:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Scott 2006-10-11 05:21:58 UTC
I've noticed after totally remastering a gnap core that /mnt/livecd/etc/inittab is different to /etc/inittab used when booting.

This means that any edits that I've made to the inittab aren't replicated onto the booted filesystem.
Comment 1 Richard Scott 2006-10-16 06:28:23 UTC
ok, I've figured it out to be due to me needing (and keeping) the /sbin/livecd-functions.sh file. 

This was fooling gnap into thinking it was a real LiveCD and it would update the inittab before it was used! A fix for this is to add the following to the 'fsscript' file inside your specs directory:

--- start cut ---

# Stop the inittab from being updated
sed -i "s/livecd_fix_inittab/#livecd_fix_inittab/" /sbin/rc

--- end cut ---

This will comment out the part of the /sbin/rc script that tries to update the /etc/inittab file.

You can then keep in the livecd-functions.sh script and make use of the net-setup file to config the network settings :-)