WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: find_mountpoint in tc-functions  (Read 3437 times)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
find_mountpoint in tc-functions
« on: April 27, 2011, 10:54:22 AM »
While experimenting with tc-functions I encountered something that seems like a bug. The function autoscan-devices returns: sda1 sr0 tcvd on my system. I use tcvd, and my extension directory is tcvd/tce3. The autoscan function iterates through this list of three devices, and "find_mountpoint sr0" actually returns "/mnt/tcvd" (I don't have a CD in the drive). It seems as though it should return an empty string because no disc is mounted, and I suspect it does if tcvd is not used.

This is a problem because $(autoscan tce3 d) returns sr0 instead of tcvd, which means that autoscanning for a directory within tcvd does not work. This doesn't affect me, but I thought I'd mention it anyway.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: find_mountpoint in tc-functions
« Reply #1 on: April 28, 2011, 09:15:21 PM »
tcvd was not intended for extensions, but as a hybrid /usr/local on a virtual drive.
However, this hybrid tclocal has pretty much been orphaned. It will make for good fodder to be revisited and retooled for extensions for v3.7
10+ Years Contributing to Linux Open Source Projects.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: find_mountpoint in tc-functions
« Reply #2 on: April 29, 2011, 08:28:01 AM »
Quote
tcvd was not intended for extensions, but as a hybrid /usr/local on a virtual drive.

I find it very useful with Tiny Core on FAT filesystems, especially when you can't repartition them to make space for TC. I have a USB flash drive where Tiny Core coexists with other files. I created a tcvd.img and stored all of my Linux files in it. This allows me to use the rest of the flash drive for other things. I could partition the usb drive into separate ext2 and FAT partitions I suppose, but this approach made backing everything up as easy as copying my tcvd.img file.
« Last Edit: April 29, 2011, 09:11:54 AM by danielibarnes »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: find_mountpoint in tc-functions
« Reply #3 on: April 29, 2011, 11:30:57 AM »
Agreed. That's how I had it setup when I called it harddisk back in myDSL days.
I will retool it and have that boot code on the 'f' boot options screen for 3.7.
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: find_mountpoint in tc-functions
« Reply #4 on: May 05, 2011, 07:50:52 PM »
Found reported issue and fixed it. Thanks for reporting!
10+ Years Contributing to Linux Open Source Projects.