During CD development for an application I a writting, I would like to start via inittab When the CD is booted the lines I put in inittab are commented out and replaced with generic lines. I would like a way easily to disable this feature, either a USE flag, or a kernel argument or setting in a configuration file would be sufficiant. DVD/CD build following instructions on this webpage. http://en.gentoo-wiki.com/wiki/Build_Your_Own_LiveCD_or_LiveDVD Reproducible: Always Steps to Reproduce: 1. Create a development chroot using stage3 tarball 2. Update develpment chroot using emerge --update --deep -av world 3. create a subdirectory to hold the CD-rom's root filesystem 4. install needed packages include baselayout 1 and livecd-tools on root filesystem using "USE=/my/cdroot" emerge packages 5. use genkernel to build a kernel 6. copy modules to cd root subdirectory 7. Change /etc/inittab to automaticly start a program as described in my first post 8. using mksquashfs create a squashfs file containing the cd root directory 9. Configure grub to enable things like hardware scanning make sure to include cdboot in the grub command line. 10. using mkisofs create a bootable CD 11. boot CD 12. You will see "updating inittab [OK]" durring boot up 13. Check your /etc/inittab, you will notice all the entries you changed are commented out and new ones have been added, see first post for details. Actual Results: My desired inittab is c1:12345:respawn:/sbin/agetty -nl /usr/bin/appliation_startup.sh 38400 tty1 linux c2:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty2 linux c3:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty3 linux c4:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty4 linux c5:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty5 linux c6:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty6 linux When I boot the CD this is commented out and this is added. c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty1 linux c2:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty2 linux c3:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty3 linux c4:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty4 linux c5:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty5 linux c6:2345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty6 linux Expected Results: The ability to easily enable/disable this feature. I am currently devoloping using baselayout-1 a workarround has been to edit /bin/rc and comment out the following lines. ebegin "Updating inittab" livecd_fix_inittab eend $?
Personally, I'd think it would make more sense to poke the baselayout people add a /proc/cmdline flag to not call the function in the first place.
I already did and I was referred to send the request to the livecd people. This is the forum posting. http://forums.gentoo.org/viewtopic-t-751673.html
I see your point, but I'm not sure yet whether we will actually address this issue. The people that maintain livecd-tools (as well as a number of other tools used for building of release materials) are busy people and have our own priorities. In the mean time, there's a few things here you can do yourself: * patch livecd-tools for your own use * don't use livecd-tools at all * realize it's intended for use by release engineering to build official gentoo release media and stop complaining It's also possible that you can work around this issue relatively simply by "fixing" the inittab in /etc/conf.d/local.start and telling init to reload.
I have already used the work around (see first posting) for my application CD. I never expected it to be a high priority. Some of the other functions such as hardware detection are important to my application CD not using the tools completely would not work. It is just a "Wish List" type item, and on the forums It was recommended that I make the request here.
this is already optional, just don't start the fixinittab script at boot. I have fixinittab|del in my spec files for just this reason.
Per @jmbsvicetto: I am re-opening this bug. We need to look further into the uses of fixinittab and determine if we still need it at all. It may be a relic we can remove from livecd-tools.
(In reply to William Hubbs from comment #6) > Per @jmbsvicetto: > I am re-opening this bug. We need to look further into the uses of > fixinittab and determine if we still need it at all. It may be a relic > we can remove from livecd-tools. At the very least it's used for tty autologin that we depend on. It also sets up various types of serial/ilom consoles for other arches. Re-open if you think there's anything to do here, and give a hint as to what that should be.