summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2019-09-11 10:31:09 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2019-10-09 13:54:50 -0500
commitddf2b748bfd6eace6e1ab6d06bf6d006027b2c90 (patch)
treef9a38159607effa358bf31c48534ebd2eb2a612a
parentb41a57d52c6e5f6673b784a7a94a8dec0787770b (diff)
downloadopenpower-pnor-code-mgmt-ddf2b748bfd6eace6e1ab6d06bf6d006027b2c90.tar.gz
openpower-pnor-code-mgmt-ddf2b748bfd6eace6e1ab6d06bf6d006027b2c90.zip
generate-tar: Call mksquashfs with -all-root option
The mksquashfs command preserves the owner of the files it squashes, which is the login name of the user that runs generate-tar since the partiton files are extracted into a local directory by pflash. Bitbake sets the owner for the filesystem files to root as default, so makes sense that the PNOR partition files are also owned by root instead of a user name that doesn't exist on the BMC. Tested: Before: root@witherspoon:~# ls -l /media/pnor-ro-652c7b59/ -rw-rw-r-- 1 253760 401855 32768 Aug 15 14:39 ATTR_PERM After: root@witherspoon:~# ls -l /media/pnor-ro-944751fd/ -rw-rw-r-- 1 root root 32768 Sep 11 15:07 ATTR_PERM -rw-rw-r-- 1 root root 32768 Sep 11 15:07 ATTR_TMP Change-Id: Ic2cbed13e0da687e51a5c15041f54fef93c07be9 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
-rwxr-xr-xgenerate-tar2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-tar b/generate-tar
index feebe8967..85d8d7f00 100755
--- a/generate-tar
+++ b/generate-tar
@@ -213,7 +213,7 @@ if [[ "${image_type}" == "squashfs" ]]; then
echo "Creating SquashFS image..."
# Prepare pnor file in ${pnor_dir}
cd "${pnor_dir}"
- mksquashfs ${tocfile} ${partitions[*]} ${scratch_dir}/pnor.xz.squashfs
+ mksquashfs ${tocfile} ${partitions[*]} ${scratch_dir}/pnor.xz.squashfs -all-root
cd "${scratch_dir}"
files_to_sign+=" pnor.xz.squashfs"
else
OpenPOWER on IntegriCloud