Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102705 - installer copies invalid /etc/inittab into newly installed system
Summary: installer copies invalid /etc/inittab into newly installed system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 05:57 UTC by Leung Ki Chi
Modified: 2006-03-24 13:46 UTC (History)
1 user (show)

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


Attachments
installprofile.xml (installprofile.xml,2.88 KB, text/plain)
2005-08-16 06:02 UTC, Leung Ki Chi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leung Ki Chi 2005-08-16 05:57:05 UTC
Actually the summary is a little misleading, but it best describes the problem. :]

When a Stage 3 GRP "Dynamic install" is performed, GLI copies over the
/etc/inittab of the liveCD into the newly installed system. This is an invalid
inittab for the install as it contains references to /bin/bashlogin at the end
of the file, which is a script that exists only on the liveCD.

The lines in question:
-----------
# End of /etc/inittab
c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty1 linux
c2:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty2 linux
c3:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty3 linux
c4:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty4 linux
c5:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty5 linux
c6:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty6 linux
-----------

Reproducible: Always
Steps to Reproduce:
Perform a Stage 3 install with GLI, selecting the GRP and "Dynamic install" options.
Comment 1 Leung Ki Chi 2005-08-16 06:02:25 UTC
Created attachment 66073 [details]
installprofile.xml
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2005-08-16 21:22:26 UTC
This is due to a modification the livecd init scripts make to /etc/inittab at
boot time. One possible "solution" we're considering it to 'cp /etc/inittab
/etc/inittab.old' before the modification and then 'cp -f /etc/inittab.old
/mnt/gentoo/etc/inittab' when building the dynamic stage3. This will require a
new livecd build, but we were planning another anyway with a newer installer
release. Give it a few days.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2005-09-02 21:28:56 UTC
The installer has been fixed to handle this for a few weeks. The next LiveCD
that is "released" will create the backup of the /etc/inittab before modifying
it so that the installer can use it.
Comment 4 Jeffrey Forman (RETIRED) gentoo-dev 2006-03-24 13:46:32 UTC
Moving to Release Media/Installer.