WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tc-install.sh bug (or filename formats!)  (Read 1613 times)

Offline parky_dw

  • Newbie
  • *
  • Posts: 33
tc-install.sh bug (or filename formats!)
« on: October 22, 2012, 10:15:53 AM »
I have just been using tc-install.sh to install a core system from an iso image.  The installation failed at the end.

The current release files have a standard format and I'd downloaded Core-4.6.2.iso.

In tc-install.sh, function getROOTFS, line 455 we have:
    ROOTFS=${SOURCE%%_*}; ${ROOTFS##/*/}

This is also in lines 667,668,673 and 674.

I'm no expert on this syntax but it's obviously parsing out the bit between the last / and an _ in the full path of the ISO to get the name of the .gz file to copy over.  Until then I wasn't aware of the dependency on the file name to determine this.

I just renamed the downloaded file to core_4.6.2.iso which fixed the problem. (I didn't check but I guess there's a case issue as well with the capital C).

Anyway the distribution naming convention and the install script are out-of-sync.

Regards

David


Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tc-install.sh bug (or filename formats!)
« Reply #1 on: October 22, 2012, 02:24:00 PM »
Thanks for reporting. Updated to support isos. Now posted to the repository.
« Last Edit: October 22, 2012, 04:25:00 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.