Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: gerald_clark on May 16, 2014, 05:04:59 PM

Title: core 5.3 tce-audit and ntfs-3g
Post by: gerald_clark 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.
Title: Re: core 5.3 tce-audit and ntfs-3g
Post by: curaga 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.
Title: Re: core 5.3 tce-audit and ntfs-3g
Post by: gerald_clark 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