EFI: Make installer EFI aware
v3 cover EFI: Make installer EFI aware
Rebased on top of Radu's console param changes.
The following changes since commit 5b7da937cd298abd6f8f0eecfede2810b157179f:
grub: fix error stating the root device (2012-07-19 17:19:45 +0100)
are available in the git repository at:
git://git.yoctoproject.org/user-contrib/dvhart/oe-core installer
http://git.yoctoproject.org/cgit.cgi/user-contrib/dvhart/oe-core/log/?h=installer
Darren Hart (1):
EFI: Make installer EFI aware
meta/classes/grub-efi.bbclass | 2 + .../images/core-image-minimal-initramfs.bb | 2 +- .../initrdscripts/files/init-install-efi.sh | 175 ++++++++++++++++++++ meta/recipes-core/initrdscripts/files/init-live.sh | 6 +- .../initramfs-live-install-efi_1.0.bb | 22 +++ 5 files changed, 203 insertions(+), 4 deletions(-) create mode 100644 meta/recipes-core/initrdscripts/files/init-install-efi.sh create mode 100644 meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb
Signature · 1 line
1.7.5.4
PATCH v3 1/1 EFI: Make installer EFI aware
[YOCTO #1919]
Create a basic EFI installer script modeled after the existing installer and add it to a new initramfs-live-install-efi recipe. Update the init-live.sh script to distinguish between LABEL=install and LABEL=install-efi and select the appropriate script. Add the efi installer to core-image-minimal-initramfs.
Update grub-efi.bbclass to use "LABEL=install-efi" when it detects a label of "install". This is clearly not ideal, but a proper fix would involve decoupling the LABELS assignment from the image-live.bbclass usage of SYSLINUX_LABELS. We should be able to address that in a follow-on clean-up series.
V2: Include missing initramfs-live-install-efi_1.0.bb
V3: Rebase after Radu's console_params fix
--- meta/classes/grub-efi.bbclass | 2 + .../images/core-image-minimal-initramfs.bb | 2 +- .../initrdscripts/files/init-install-efi.sh | 175 ++++++++++++++++++++ meta/recipes-core/initrdscripts/files/init-live.sh | 6 +- .../initramfs-live-install-efi_1.0.bb | 22 +++ 5 files changed, 203 insertions(+), 4 deletions(-) create mode 100644 meta/recipes-core/initrdscripts/files/init-install-efi.sh create mode 100644 meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb
meta/classes/grub-efi.bbclass +2 -0
@@ -99,6 +99,8 @@ python build_grub_cfg() { bb.data.update_data(localdata) cfgfile.write('\nmenuentry \'%s\'{\n' % (label)) + if label == "install": + label = "install-efi" cfgfile.write('linux /vmlinuz LABEL=%s' % (label)) append = localdata.getVar('APPEND', True)
meta/recipes-core/images/core-image-minimal-initramfs.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "Small image capable of booting a device. The kernel includes \ the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ first “init” program more efficiently." -IMAGE_INSTALL = "initramfs-live-boot initramfs-live-install busybox udev base-passwd" +IMAGE_INSTALL = "initramfs-live-boot initramfs-live-install initramfs-live-install-efi busybox udev base-passwd" # Do not pollute the initrd image with rootfs features IMAGE_FEATURES = ""
meta/recipes-core/initrdscripts/files/init-install-efi.sh new file +175 -0
175 lines not on this page · raw message
meta/recipes-core/initrdscripts/files/init-live.sh +3 -3
@@ -116,11 +116,11 @@ case $label in fi fi ;; - install) + install|install-efi) if [ -f /media/$i/$ISOLINUX/$ROOT_IMAGE ] ; then - ./install.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode $console_params + ./$label.sh $i/$ISOLINUX $ROOT_IMAGE $video_mode $vga_mode $console_params else - fatal "Could not find install script" + fatal "Could not find $label script" fi # If we're getting here, we failed...
meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb new file +22 -0
@@ -0,0 +1,22 @@ +DESCRIPTION = "A live image init script for grub-efi" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +SRC_URI = "file://init-install-efi.sh" + +PR = "r0" + +RDEPENDS_${PN} = "parted e2fsprogs-mke2fs dosfstools" + +do_install() { + install -m 0755 ${WORKDIR}/init-install-efi.sh ${D}/install-efi.sh +} + +# While this package maybe an allarch due to it being a +# simple script, reality is that it is Host specific based +# on the COMPATIBLE_HOST below, which needs to take precedence +#inherit allarch +INHIBIT_DEFAULT_DEPS = "1" + +FILES_${PN} = " /install-efi.sh " + +COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
Signature · 1 line
1.7.5.4