Merge pull request #381 from marineam/fix-usr

bump(sys-kernel/bootengine): fixes for booting /usr images
This commit is contained in:
Michael Marineau 2014-03-03 20:25:22 -08:00
commit 338d0fa8cb
4 changed files with 8 additions and 55 deletions

View File

@ -0,0 +1 @@
bootengine-9999.ebuild

View File

@ -1,54 +0,0 @@
# Copyright (c) 2013 CoreOS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="2c80368fb150a18fee29ff2145458956fc0751cc"
CROS_WORKON_PROJECT="coreos/bootengine"
CROS_WORKON_LOCALNAME="bootengine"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_REPO="git://github.com"
inherit cros-workon cros-debug cros-au
DESCRIPTION="CoreOS Bootengine"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
DEPEND="
app-arch/gzip
app-shells/bash
coreos-base/vboot_reference
sys-apps/coreutils
sys-apps/findutils
sys-apps/grep
sys-apps/kbd
sys-apps/kexec-tools
sys-apps/less
sys-apps/sed
sys-apps/systemd
sys-apps/systemd-sysv-utils
sys-apps/util-linux
sys-kernel/dracut
virtual/udev
"
RDEPEND="${DEPEND}"
src_install() {
insinto /usr/lib/dracut/modules.d/
doins -r dracut/.
dosbin update-bootengine
}
# We are bad, we want to get around the sandbox. So do the creation of the
# cpio image in pkg_postinst() where we are free to mount filesystems, chroot,
# and other fun stuff.
pkg_postinst() {
if [[ -n "${ROOT}" ]]; then
${ROOT}/usr/sbin/update-bootengine -m -c ${ROOT} || die
else
update-bootengine || die
fi
}

View File

@ -7,6 +7,13 @@ CROS_WORKON_LOCALNAME="bootengine"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~x86"
else
CROS_WORKON_COMMIT="d523f3055c6eb0a95b8074b3651d2ea23d512efc"
KEYWORDS="amd64 arm x86"
fi
inherit cros-workon cros-debug cros-au
DESCRIPTION="CoreOS Bootengine"