WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: core 5.3 tce-audit and ntfs-3g  (Read 2113 times)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
core 5.3 tce-audit and ntfs-3g
« on: May 16, 2014, 05:04:59 PM »
I remastered with ezremaster and added ntfs-3g using "Extract TZ to initrd".
With the tce directory on the ntfs partition everything works except tce-audit delete.
The file /tmp/audit_marked.lst is created with the list of extensions to delete.
On exitcheck.sh it displays "Removing Requested Extensions:" and then lists the extensions.
On reboot, however, the extensions are still in /etc/sysconfig/tcedir/optional.
The tc user has no trouble creating and deleting files in /etc/sysconfig/tcedir/optional.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: core 5.3 tce-audit and ntfs-3g
« Reply #1 on: May 17, 2014, 05:55:58 AM »
Can you copy the snippet from /etc/init.d/rc.shutdown to a standalone script and debug?

edit: Perhaps the ntfs process is killed by the preceding killalls. But that introduces an interesting catch-22, as the extension processes should be killed before umounting and removing their extensions.

If that's so, then I don't think there's a good solution to this problem, and having the tce dir on ntfs (any fuse really) would just be unsupported.
« Last Edit: May 17, 2014, 06:01:36 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: core 5.3 tce-audit and ntfs-3g
« Reply #2 on: May 17, 2014, 11:28:37 AM »
Quite right.
Adding the folowing to bootlocal.sh allows a proper shutdown:
pgrep fuseb  >> /var/tmp/k5_skip
pgrep ntfs-3g >> /var/tmp/k5_skip