I see -- but the question is ¿Does Porteus keep changes between sessions if you use `cp -ufa' in /mnt/live/cleanup?
Please look at this:
Code: Select all
guest@porteus:/$ which cp
/usr/bin/cp
guest@porteus:/$ ls -l /usr/bin/cp
lrwxrwxrwx 1 root root 12 Dec 19 2016 /usr/bin/cp -> ../../bin/cp*
guest@porteus:/$ file /bin/cp
/bin/cp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, stripped
I think cleanup uses this one instead:
Code: Select all
guest@porteus:/$ ls -l /mnt/live/bin/cp
lrwxrwxrwx 1 root root 7 Oct 25 23:11 /mnt/live/bin/cp -> busybox*
Why there are no error messages from cleanup? Just because it sends them to the null device.
Code: Select all
cp -uaf --parents $FOLDERS $MNAME 2>/dev/null
Regards!