WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
find_mountpoint in tc-functions
« on: April 27, 2011, 01:54:22 PM »
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

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: find_mountpoint in tc-functions
« Reply #1 on: April 29, 2011, 12:15:21 AM »
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, 11: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, 12:11:54 PM by danielibarnes »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: find_mountpoint in tc-functions
« Reply #3 on: April 29, 2011, 02:30:57 PM »
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

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