{"push_id":997689964,"size":19,"distinct_size":19,"ref":"refs/heads/wip-from-ram","head":"3862e7a7fa63d450bb63e184cb9dd80867a36ab0","before":"2f0c61d288ba563fe647fea18c93906dc2e2a4f0","commits":[{"sha":"f34a07023464c55e1bb6f2539c3378db0bbacf09","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"shutdown: Conditionally unmount proc\n\nThe intention was to test the flag variable set when proc was\nmounted earlier in the script, not the constant string containing\nthe name of the variable.\n\nThe unnecessary unmount is not noticeable when a normal shutdown\nor reboot is being performed while executing after systemd, but\nresults in a less usable environment when invoked manually.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/f34a07023464c55e1bb6f2539c3378db0bbacf09"},{"sha":"0669152ceb958e41a970fa357953d626073b70c7","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"shutdown: Correct comment on the reason to invoke stty\n\nThe desired system call is not an ioctl but tcsetattr with\nsecond parameter TCSADRAIN.\n\nReported-by: Andrew Jeffery <andrew@aj.id.au>\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/0669152ceb958e41a970fa357953d626073b70c7"},{"sha":"d97a7bd4e581cb4d3e93f07a7b60a22bb0311435","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"shutdown: Test equality with =\n\nThe test command is documented as taking = and not == to test\ntwo strings for equality.  While both appear to work use the\ndocumented comparison operator.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/d97a7bd4e581cb4d3e93f07a7b60a22bb0311435"},{"sha":"a6d0709f19368995f9f18ce7ba291a13580d59de","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"shutdown: Complain if update images exist without update script\n\nLike init, complain if the update program is missing if flash\nupdate images are present.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/a6d0709f19368995f9f18ce7ba291a13580d59de"},{"sha":"6837ebe224addff115b36cacac3117b86f987d02","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"shutdown: Call update from /run/initramfs directory\n\nWhile both are the same directory via bind mount when shutdown\nis executing from systemd use the full pathname to the script.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/6837ebe224addff115b36cacac3117b86f987d02"},{"sha":"f5c011453bd748ebd9df32089c3f86e42c9ee916","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Do not bother to check if the whitelist is not empty\n\nJust let the copy loop execute zero times.\n\nDoing so removes a condition and prepares for splitting the whitelist\ninto component files.  Suppressing the mount will be available via\nother means in a future patch.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/f5c011453bd748ebd9df32089c3f86e42c9ee916"},{"sha":"b2f780d3ea94e5bc209ae6a6417cabe72c478446","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Save files from init mount path\n\nSpecify the full run/initramfs/rw path for the mountpoint of the\nrwdir.  While systemd bind mounts run/initramfs to / when invoking\nshutdown this will allow update to run if all layers are in ram.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/b2f780d3ea94e5bc209ae6a6417cabe72c478446"},{"sha":"662c56477a502142c0a1f0ea90fab33aa6d47a35","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Restore files via an alternate mount directory\n\nThis will allow us to restore or check-point the whitelisted files\nto the read-write filesystem device without causing confusion by\nmounting over the upperdir location while at runtime.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/662c56477a502142c0a1f0ea90fab33aa6d47a35"},{"sha":"c4c06fe1912a7f3b36d26f7575f48885ff3a92d9","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Skip save if prior saved files directory exists\n\nThis will skip attempting to save files a second time.  This saves\na mount and unmount when performing the clean filesystem sequence\nand provides a way to skip saving all files, including attempting\nto mount the rwfs read-only.\n\nThe calling script should remove the /save directory after update\nis run if a fresh snapshot will be required.\n\nSigned-off-by: Milton Miller <miltonm@us.ibn.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/c4c06fe1912a7f3b36d26f7575f48885ff3a92d9"},{"sha":"5c1fdbabe80f306f0e8d540051b0682064e10cb1","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Save files from RAM or existing mount\n\nIf the upper directory exists skip mounting and unmounting the rwfs\nand instead copy files from the directory.  This covers runnig with\nthe upper directory in RAM but also would cover it being mounted from\na device other that an mtd.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/5c1fdbabe80f306f0e8d540051b0682064e10cb1"},{"sha":"9d53b30c57fd6cb0ffd74780f5e689a033941e40","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Skip calling flashcp for empty files\n\nNote explicitly when an empty image is provided that will not\nalter a flash partition.\n\nWhile using flashcp on an empty file succeeds and does not alter\nthe flash, it may be confusing to see 0/0 messages for the erase,\nwrite, and verify phases.\n\nThese empty files are used to trigger the save and restore phases\nand may also be used by developers to cause the update to fail\nand break into a shell at shutdown for maintence.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/9d53b30c57fd6cb0ffd74780f5e689a033941e40"},{"sha":"4c3f47690b58b025bca3158f82c1e138f8a427c7","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"update: Make cow directory before restoring saved files.\n\nThis will ensure the cp command always writes to an existing\ndirectory but will also make any future component directories if\nthe upper directory is later moved from the root of the filesystem.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/4c3f47690b58b025bca3158f82c1e138f8a427c7"},{"sha":"32d0cb7ef8ee7ce9eb6418975559f8d6432d5c46","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Read options from a file\n\nGrep options from a file instead of directly from /proc/cmdline\nwhich will allow additonal sources for options.\n\nInitially the options file is just a copy of the kernel command\nline, but it may be edited at debug-init-sh or via a later\ndebug_takeover point or before restarting init.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/32d0cb7ef8ee7ce9eb6418975559f8d6432d5c46"},{"sha":"c3031f6f9d68335c9e7a5f53a0bebb1c9f9a8524","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Use loop mount of /run/image-rofs file if it exists\n\nIf a read-only file system image is in /run, specifically\n/run/image-rofs, then mount it instead of the mtd partition.\n\nThis will allow running from ram to allow the flash to be updated,\neither from a downloaded image, a packaged image, or an image\ncopied at boot.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/c3031f6f9d68335c9e7a5f53a0bebb1c9f9a8524"},{"sha":"1959a44e75eccbe2d21140f843d8ea138a8bdede","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Suppress fsck command not present error by file system type\n\nDecide lack of fsck is not a problem by the type of the rwfs image\ninstead of the full name of the fsck command.  This eliminates\nduplicates knowledge of how the fsck path is formed.\n\nSuggested-by: Andrew Jeffery <andrew@aj.id.au>\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/1959a44e75eccbe2d21140f843d8ea138a8bdede"},{"sha":"39b39deb4477991cbd178fa2f3772d7d5254e398","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Run from RAM if file system type is specified as none\n\nAllow file system type none for rwfst, which means do not mount a\nseparate file system but just use the directory in the tmpfs /run.\n\nThis will be used to allow the flash controller to not be used by\nthe running image, allowing flash updates while the BMC is running\nthe main application.\n\nIt could also be used for a file system less prone to corruption\nwhere the read-write overlay is only updated with whitelisted files\nat specific points in time with updates to the update script.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/39b39deb4477991cbd178fa2f3772d7d5254e398"},{"sha":"be154a39a92b115983c506a5cda8641abb4b45ed","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Always move images from root\n\nIf images are to be updated before init continue to move them\nto /run/initramfs.  However, if they are not to be flashed before\ninit instead move them to /run.\n\nThis will result in the image-rofs being loop mounted for this run,\nand all images will be available at runtime for flash update at\nruntime.\n\nSigned-off-by: Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/be154a39a92b115983c506a5cda8641abb4b45ed"},{"sha":"f83b00b71c79be5043fa3c0001faae5f7d1f1cd8","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Add option to run with writable overlay in RAM\n\nIf overlay-filesystem-in-ram is found set rwfst=none suppressing\nthe rwfs mount.\n\nSigned-off-by:  Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/f83b00b71c79be5043fa3c0001faae5f7d1f1cd8"},{"sha":"3862e7a7fa63d450bb63e184cb9dd80867a36ab0","author":{"email":"8bd50e0fc26e21e23b28837d9acdf866b237c39d@us.ibm.com","name":"Milton D. Miller II"},"message":"init: Add option to copy base read-only filesystem into RAM\n\nIf copy-base-filesystem-to-ram is found copy the read-only\nfilesystem source device to /run/image-rofs.  If the copy fails\nthen remove the partial copy and invoke debug takeover.\n\nThis will allow a new image to be downloaded and flashed while\nrunning from the existing copy for the duration of this boot.\n\nAlternatively with the overlay also in RAM pflash could be used\nto update the flash from the host as the BMC would no longer need\nthe flash or flash controller.\n\nSigned-off-by:  Milton Miller <miltonm@us.ibm.com>","distinct":true,"url":"https://api.github.com/repos/mdmillerii/openbmc/commits/3862e7a7fa63d450bb63e184cb9dd80867a36ab0"}]}