WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Question regarding behavior of tce-load copy mode versus normal link mode  (Read 1750 times)

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
The behavior of tce-load is different if you are using "copy mode" versus the normal mounted extension link mode of installing extensions with regards to overwriting existing files. 

As an example, I created an extension that just contains an /etc/motd file (which is a file that exists in the base system).   If I run "tce-load -i test.tcz" then the original /etc/motd file is overwritten with a link to the extension etc/motd file.   If I reboot and run "tce-load -ci test.tcz", the /etc/motd file is not changed.   So with the copy mode existing files are not overwritten, and with the normal link/mount mode existing files are overwritten. 

I can see in the tce-load script that copy mode is specifically setup to not overwrite existing files ("yes n" piped to cp with prompt for overwrite).   I'm trying to understand why the behavior is different between these 2 modes?

Thanks,
Brian

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Question regarding behavior of tce-load copy mode versus normal link mode
« Reply #1 on: September 03, 2010, 02:13:29 PM »
It was brought to my attention awhile back. I did not act on it then. Now I will.
Should be as copyinstall. So shall it be.
10+ Years Contributing to Linux Open Source Projects.