Author Topic: What is /etc/livecd for ?  (Read 836 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
What is /etc/livecd for ?
« on: October 03, 2009, 05:18:32 AM »
Hello,

During first boot of a PCLinuxOS 2009.2 recently installed, (in VirtualBox) I noticed a message in the boot scrolling, complaining : can't remove /etc/livecd : is a directory.

It happens that in /etc/rc.d/rc.sysinit the line is such:
Code: [Select]
# Remove Livecd file
        rm -f /etc/livecd

It misses a -R option (I posted here about it: PCLinuxOS 2009.2 minor error in rc.sysinit). What about this /etc/livecd/hardware/hwdetect/mounts.cfg file ?

The content of the file is:
Quote
hdc=|info=cdrom: VBOX CD-ROM|dev=/dev/hdc|devfs=/dev/|mount=/media/cdrom|media=cdrom|type=auto|opt=user,exec,ro,noauto


What does it do in the live CD, and my main question would be : how will be the next remaster if this is erased while booting the first time ?

Thanks. :)
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: What is /etc/livecd for ?
« Reply #1 on: October 03, 2009, 06:23:53 AM »
Melodie,
This has been in the system for some time. There has never been an issue related to it in the creation of a remaster that I'm aware of.

There is no problem with leaving it as it is -- that I am aware of.


Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12539
Re: What is /etc/livecd for ?
« Reply #2 on: October 03, 2009, 06:28:44 AM »
It doesn't matter if is it there or not as hwdetect will just overwrite it when the livecd boots. You can add it to the remove part on first boot in the  rc.sysinit script if you want.

Thanks to everyone who donates. You keep the servers running.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: What is /etc/livecd for ?
« Reply #3 on: October 03, 2009, 08:10:25 AM »
Hello,

Thanks for theses answers. Maybe will you want to correct if for the next quarterly and add a '-R' option along with 'rm -f /etc/livecd' in the rc.sysinit file ?

I have another little errata to show that I just found in PCLinuxOS 2009.2, I'll put a post at "General" as I didn't find a dedicated section or thread for this matter.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode