commit | 7d9e2e4ae2c59fe69fd14c291db1caf61c9969ee | [log] [tgz] |
---|---|---|
author | Milton Miller <miltonm@us.ibm.com> | Fri Feb 05 17:26:04 2016 -0600 |
committer | Milton D. Miller II <miltonm@us.ibm.com> | Tue Feb 09 11:11:24 2016 -0600 |
tree | 048bc13ee91c0a2129be28018a7118e16065e64f | |
parent | dbacf104885c3bf78c5f3e06f63bba6db0742e4b [diff] |
obmc-initfs: shutdown when rofs is a loop mounted image in /run If one sets rodir=/run/image-rofs roopts=ro,loop and transfers an image one can run from a base image in ram. However, the shutdown will fail to unmount /run because it is busy and then fails to unmount /cow which causes oldroot to be still mounted. By moving the mount to the side everything cleans up (as long as there are no other mounts under run, and systemd-shutdown tried to do as much as possible). Signed-off-by: Milton Miller <miltonm@us.ibm.com>
OpenBMC uses Yocto/Open-Embedded for a build system, which supports an out-of-tree build. It is recommended that you create an empty directory somewhere to hold the build. This directory will get big.
On Ubuntu 14.04 the following packages are required to build the default target
sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat
On Fedora 23 the following packages are required to build the default target:
sudo dnf install -y git patch diffstat texinfo chrpath SDL-devel bitbake sudo dnf groupinstall "C Development Tools and Libraries"
To start a build:
cd <builddir> . <repodir>/openbmc-env bitbake obmc-phosphor-image