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>
1 file changed
tree: f9a38159607effa358bf31c48534ebd2eb2a612a
  1. m4/
  2. static/
  3. test/
  4. ubi/
  5. .clang-format
  6. .gitignore
  7. activation.cpp
  8. activation.hpp
  9. bootstrap.sh
  10. configure.ac
  11. generate-tar
  12. generate-ubi
  13. image_verify.cpp
  14. image_verify.hpp
  15. item_updater.cpp
  16. item_updater.hpp
  17. item_updater_main.cpp
  18. LICENSE
  19. MAINTAINERS
  20. Makefile.am
  21. msl_verify.cpp
  22. msl_verify.hpp
  23. msl_verify_main.cpp
  24. op-pnor-msl.service
  25. openpower-pnor-update@.service
  26. org.open_power.Software.Host.Updater.service
  27. README.md
  28. utils.cpp
  29. utils.hpp
  30. version.cpp
  31. version.hpp
README.md

openpower-pnor-code-mgmt

OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.