1. 19 Aug, 2016 1 commit
    • Adriana Kobylak's avatar
      whitelist: Add obmc cache and obmc settings · 5051c683
      Adriana Kobylak authored
      
      During BMC FW update, preserve the following directories:
        /var/cache/obmc/ - Holds the inventory data
        /var/lib/obmc/ - Holds the settings properties
      The whiltelist is recursive, specifying /var/lib/obmc/
      will still preserve the event log directory
      /var/lib/obmc/events/, so it can be removed.
      
      Change-Id: I1e1adb1b39a499a6c50e34171a964ee8c884f6c9
      Signed-off-by: default avatarAdriana Kobylak <anoo@us.ibm.com>
      5051c683
  2. 17 Aug, 2016 1 commit
  3. 08 Aug, 2016 1 commit
  4. 04 Aug, 2016 2 commits
    • Adriana Kobylak's avatar
      Make REST server process depend on networkd · 413af0a1
      Adriana Kobylak authored
      
      Whenever networkd restarts like when network configuration
      changes, restart the rest server to avoid it getting hung
      if there are pending REST transaction when the network
      configuration changed. Use PartOf in the service file
      because from the systemd documentation, this option is
      limited to stopping and restarting of units, which is the
      only desire at this time.
      Refer to openbmc/phosphor-rest-server#24
      
      Change-Id: Ie366e833b11800df0341e2ae117c2d9a08600a5e
      Signed-off-by: default avatarAdriana Kobylak <anoo@us.ibm.com>
      413af0a1
    • Joel Stanley's avatar
      meta-phosphor: Move to openbmc-4.4-20160804-1 · d470b1f1
      Joel Stanley authored
      
       - Stable relase 4.4.16
       - Gavin's fix for a NCSI race that caused the device to not come up
      
      Change-Id: I895e9c58e82f8b3de193e1beb86a5b68e47af31f
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      d470b1f1
  5. 22 Jul, 2016 1 commit
  6. 11 Jul, 2016 2 commits
  7. 05 Jul, 2016 1 commit
  8. 02 Jul, 2016 1 commit
  9. 01 Jul, 2016 1 commit
  10. 30 Jun, 2016 16 commits
    • Milton Miller's avatar
      initfs: Store whiltelist in a directory of files · c2686a95
      Milton Miller authored
      
      Change the whiltelist definition to be files in a directory instead
      of a single file.  This will allow us to store which files should
      be saved in individual recipes and also supports comments in the
      whitelist.
      
      The actual split into separate files is deferred for prototyping
      what assistance classes should look like to make the whitelist
      (eg systemd service files); also the packages will need to be
      added to the package list for the initramfs image.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      c2686a95
    • Milton Miller's avatar
      initfs: whitelist: Sanitize obmc events whitelist entry · d55fd291
      Milton Miller authored
      
      Remove the trailing / so that the update script doesn't have to loop.
      
      It was determined the trailing slash confused the code that makes
      the save subdirectory.  The update script was fixed but this removes
      the extra work needed.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      d55fd291
    • Milton Miller's avatar
      initfs: update: Sanitize whitelist directory entries · 08f66d08
      Milton Miller authored
      
      Repeatedly strip trailing "/" and "/." from whitelist entries
      and fail if an entry includes "/../", ends with "/..", or doesn't
      start with a "/".  Also use the entries quoted to avoid any glob.
      
      It was noticed the save code was saving directories that ended
      in "/" into a subdirectory of the last component name.  This was
      traced the the code creating the directory just stripping the last
      "/" and then copying to the directory.
      
      Choose to sanitize the entry where possible for ease of use verses
      a small performance penalty.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      08f66d08
    • Milton Miller's avatar
      initfs: update: handle no images to update · f1cad114
      Milton Miller authored
      
      Notify the user if image wildcard expansion fails instead of printing
      message about failing to find partition to flash.
      
      The update script errors with the message that it can't figure out what
      partition to flash for /run/initramfs/image-* if there are no images
      pending.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      f1cad114
    • Milton Miller's avatar
      image-types_uboot: Package a self contained netboot image · 61fba335
      Milton Miller authored
      
      Create a cpio containing the base read-only image, and create a
      single combined initramfs image consisting of the image-rofs
      and the existing initramfs.
      
      There has been a desire to have a self contained netboot image present
      for developer testing and experimentation.   The init script already
      supports having the rofs layer sourced from a file packaged into the
      initramfs, and will use it if found.
      
      While this image will not fit in the current flash layout in
      the initrd space, it will load over the network.  This method
      leaves the squashfs compressed in RAM, decompreses is invoked as
      needed at runtime, trading boot time and memory space for runtime
      decompress on demand.  This will also give similar file access
      overheads and performance to reading the data from flash.
      
      Because the rofs is already compressed with xz compression,
      don't try to compress this cpio (the cpio packaging adds about 40
      bytes of ascii before and after, plus some alignment padding).
      Because the kernel requires uncompressed cpios to appear on a
      4-byte boundary with 0 byte fill between archives, place this
      cpio first in the combined image.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      61fba335
    • Milton Miller's avatar
      initfs: init: add file for base options · 9476a6a5
      Milton Miller authored
      
      Allow an initrd image to include options for init while still allowing
      additional options to come from the kernel command line and/or u-boot
      environment variables.
      
      This will allow building a netboot image that can specify to run
      from RAM while allowing the command line to initiate debug or skip
      copying files from the read-write overlay file system.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      9476a6a5
    • Milton Miller's avatar
      initfs: update: add --help message · 2ef727d0
      Milton Miller authored
      
      Now that update is intended for use at runtime and not just by
      the init and shutdown scripts, add a short help message listing
      the options so people don't have to understand how to read shell.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      2ef727d0
    • Milton Miller's avatar
      initfs: update: add check for image size vs mtd size · bfb33b53
      Milton Miller authored
      
      The flashcp command will check the file size vs the partition size,
      so add a check when looking at images.
      
      Use stat -L -c "%s" to get the file size, and compare it to the mtd
      size from the sysfs size attribute.
      
      If this check is suppressed the enforcement is left to flashcp.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      bfb33b53
    • Milton Miller's avatar
      initfs: update: check individual mtd partitions for mounts · aa42dfda
      Milton Miller authored
      
      Instead of checking for any mtd device, only check mtd devices
      that are to be updated.  Include child mtd devices when looking
      for mounted filesystems.
      
      If this check is suppressed flash updates are suppressed.
      Suppressing the check may be useful to verify a update could
      succeed at shutdown.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      aa42dfda
    • Milton Miller's avatar
      initfs: update: add option to perform checks but skip actual update · 694e44e0
      Milton Miller authored
      
      Provide a way to check if update is likely to succeed without
      attempting actual updates.
      
      This will check the image names correspond to mtd partition names,
      and will be enhanced with additional checking for file size and
      individual partition mounts.
      
      This is not called --dry-run because it will still do file save
      and restore if those are enabled.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      694e44e0
    • Milton Miller's avatar
      initfs: update: Consistently add ERROR: and print to stderr · 6343f09d
      Milton Miller authored
      
      Make sure all error messages start with the tag ERROR and its
      printed to stderr by creating an echoerr function.
      
      Previously one case had the file descriptors backwards in the
      redirection.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      6343f09d
    • Milton Miller's avatar
      initfs: update: Do not cause an error if no files were saved · 0f1edbef
      Milton Miller authored
      
      If there were no files in the read-write overlay file system that
      were in the persistent file list, then the save directory will
      not be created and therefore not exist.  Skip attempting copying
      the non-existent directory in that case to avoid the error message.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      0f1edbef
    • Milton Miller's avatar
      initfs: update: Don't exec sh or sulogin on error just exit 1 · 4d217806
      Milton Miller authored
      When update was written it was exec'd from the shutdown script
      and hence took over pid 1.  Since exiting in that environment was
      a panic situation, the script instead started a rescue shell with
      its output presumably on the console.
      
      The calling convention was updated to be a simple invocation in
      commit dbacf104
      
       ("obmc-initfs: run update as a sub-script")
      but the error handling was not updated.  That error handling is
      now becoming a hindrance to use from additional environments so
      change it.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      4d217806
    • Milton Miller's avatar
      initfs: shutdown: comment on update success · 17c47385
      Milton Miller authored
      
      Print an error from the shutdown script when the update fails.
      
      Update is changing to return codes when its preconditions are not
      met, so be more verbose about its success to provide a means to
      debug flash updates not occurring.
      
      We could add a sulogin or sushell but its not clear what would be
      desired here.  If so the message should include "rmdir /oldroot
      to get a PID 1 shell" like /takever works in init.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      17c47385
    • Milton Miller's avatar
      initfs: Fix recipe, remove unnecessary class · f6be0985
      Milton Miller authored
      
      Because the recipe was named with trailing part init instead
      of initfs, the package didn't match the package name requiring
      PROVIDES, RPROVIDES and other bitbake workarounds.  Fix the recipe
      name to match the package removing the overly verbose packaging.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      f6be0985
    • Milton Miller's avatar
      image_types_uboot: Don't truncate when assembling flash · 285b210e
      Milton Miller authored
      
      The generate_flash_image step was creating a file then using dd to
      fill in the pieces, but missed adding the conv=notrunc flag, so each
      step was shortening the file to its output.
      
      Add the forgotten conversion flag to each dd command.
      Signed-off-by: default avatarMilton Miller <miltonm@us.ibm.com>
      285b210e
  11. 27 Jun, 2016 1 commit
  12. 24 Jun, 2016 1 commit
  13. 21 Jun, 2016 2 commits
  14. 20 Jun, 2016 3 commits
  15. 18 Jun, 2016 1 commit
  16. 17 Jun, 2016 5 commits