
When we put files inside rootcopy folder that is stored in a non-POSIX file system (i.e. non-Unix, like FAT or NTFS), what Porteus has always been doing during boot is copying all this content with the following permission:
For files:
Code: Select all
-rwxrwxrwx guest root
Code: Select all
drwxrwxrwx guest root
The problem is: when Porteus is copying these files/folders from a non-POSIX rootcopy it's also changing the file permission of the destination.
Let's get one real case example to illustrate: VirtualBox. It's known for being very sensitive to its files/folders permissions to the point it may simply refuse to run or boot a VM if it detects that some permission is different from what it expects. So imagine you want to put in your non-POSIX rootcopy folder some file in rootcopy/opt. What will happen after boot is that /opt folder will have the following permission:
Code: Select all
drwxrwxrwx guest root
Code: Select all
drwxr-xr-x root root
My idea to work around this issue is to simply copy all non-POSIX rootcopy content without changing any system folder destination permission. Of course, this behavior won't apply to POSIX file system (i.e. Unix partitions).
Let me know if you think this is reasonable or dangerous or anything that comes to your mind
