I wrote this test command to try it out:
Code: Select all
find /lib -type f -exec echo /mnt/sq/{} /{} ;
Code: Select all
find /lib -type f -exec ln -s /mnt/sq/{} /{} ;
I tried escaping the brackets, like /mnt/sq/\{\} /\{\} , but no good.
The first part of the command is good and gives just the files in /lib.
Code: Select all
find /lib -type f
The new links in /lib point to the files in the squash file at /mnt/sq/lib
I originally wanted to just replace the dir. /lib with a link, but no go.
The link command executes and the error code is 0, but no change.
The new /lib link still points to the same original dir. as before. Odd...
I guess you can replace files that`re in use, but not dirs. with open files.
I`m guessing that files in /lib are used right after the root fs is extracted,
which leaves no time to make changes before /lib is tied up.