Add scripts and permissions map for packagers.
authorBryan D. Stine <bryan@southcape.org>
Wed, 3 Feb 2010 21:54:13 +0000 (16:54 -0500)
committerBryan D. Stine <bryan@southcape.org>
Wed, 3 Feb 2010 21:54:13 +0000 (16:54 -0500)
commitbbcbee8c0a3cc43992bc482ab4361b1816a2c784
tree3a031de3e7302179ff55a8ec1020fe481c5543ba
parent9f20b3961df04f4c422e3fa0e6e311f9737e24d6
Add scripts and permissions map for packagers.

This script will read the permissions map that has been previously created
from released versions of the rootfs image. It will automatically restore
permissions that have been lost for whatever reason (including git repo
transfers).

Permissions maps can be created with the following (in a loopback-mounted
rootfs.img):

sudo find . -exec stat -c '%a %u %g %n' {} \; >perms.map

The perms.map file should be placed in scripts/ and updated regularly when
new files are added to the image or permissions are changed.

The script must be run in the root directory of the rootfs.
scripts/distprepare.py [new file with mode: 0755]
scripts/perms.map [new file with mode: 0644]