Merge pull request #77 from philips/add-bootengine

Add bootengine
This commit is contained in:
Brandon Philips 2013-07-16 11:20:23 -07:00
commit 50959ce3c9
3 changed files with 69 additions and 0 deletions

View File

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

View File

@ -0,0 +1,35 @@
# Copyright (c) 2013 CoreOS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="c3e5455dd4b2ebb5f05f9203ddbe4e24c3af8ede"
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="
sys-kernel/dracut
sys-kernel/coreos-bootkernel"
src_install() {
modules_dir=${D}/usr/lib/dracut/modules.d/
mkdir -p $modules_dir
cp -R dracut/80gptprio $modules_dir
mkdir ${D}/boot
for i in `ls /build/amd64-generic/boot/vmlinuz-*boot_kernel*`; do
ver=${i##*vmlinuz-}
chroot /build/amd64-generic dracut --force --fstab --kver ${ver} /tmp/initramfs-${ver}.img
cp /build/amd64-generic/tmp/initramfs-${ver}.img ${D}/boot/
done
}

View File

@ -0,0 +1,33 @@
# Copyright (c) 2013 CoreOS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
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 ~arm ~x86"
DEPEND="
sys-kernel/dracut"
src_install() {
modules_dir=${D}/usr/lib/dracut/modules.d/
mkdir -p $modules_dir
cp -R dracut/80gptprio $modules_dir
mkdir ${D}/boot
for i in `ls /build/amd64-generic/boot/vmlinuz-*boot_kernel*`; do
ver=${i##*vmlinuz-}
chroot /build/amd64-generic dracut --force --fstab --kver ${ver} /tmp/initramfs-${ver}.img
cp /build/amd64-generic/tmp/initramfs-${ver}.img ${D}/boot/
done
}