Skip to content

UUID support in installer (poky-contrib: ed/oe-core/uuid-init-install)

Ed Bartosh openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 0 repliesNew
  2. v110 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11image-live: Set syslinux timeout to 5smeta/classes/image-live.bbclass+1 -10 replies
2/11initramfs-live-install: Add blkid to initramfsmeta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb+2 -20 replies
3/11busybox: Enable UUID-related optionsmeta/recipes-core/busybox/busybox/defconfig+4 -40 replies
4/11init-install-efi: Implement UUID supportmeta/recipes-core/initrdscripts/files/init-install-efi.sh+7 -40 replies
5/11init-install: Use GPT table with GRUB 2meta/recipes-core/initrdscripts/files/init-install.sh+40 -120 replies
6/11init-install: Implement UUID supportmeta/recipes-core/initrdscripts/files/init-install.sh+17 -60 replies
7/11init-install: Specify filesystem type in parted command linemeta/recipes-core/initrdscripts/files/init-install-efi.sh meta/recipes-core/initrdscripts/files/init-install.sh+7 -70 replies
8/11init-install: Specify partition name in parted command linemeta/recipes-core/initrdscripts/files/init-install-efi.sh meta/recipes-core/initrdscripts/files/init-install.sh+9 -70 replies
9/11init-install: code cleanup: Replace tabs with spacesmeta/recipes-core/initrdscripts/files/init-install-efi.sh meta/recipes-core/initrdscripts/files/init-install.sh+51 -520 replies
10/11init-install: code cleanup: replace /dev/$device -> $devicemeta/recipes-core/initrdscripts/files/init-install-efi.sh meta/recipes-core/initrdscripts/files/init-install.sh+46 -460 replies
11/11init-install: Properly delete partition tablemeta/recipes-core/initrdscripts/files/init-install-efi.sh meta/recipes-core/initrdscripts/files/init-install.sh+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/11] UUID support in installer (poky-contrib: ed/oe-core/uuid-init-install)

Hi,

This patchet adds support of GPT partition table and UUID support to initramfs installer scripts.

Using UUID in favor of device names is more reliable as UUID names are persistent.

Device names can change as the order of adding device nodes is arbitrary. This sometimes results in device names switching on each boot, which can cause system fail to boot. Persistent naming solves these issues.

Implementation details:
Used partition UUID in kernel command line to specify root partition. Used partition UUID in /etc/fstab to specify swap partition. Used filesystem UUID in /etc/fstab to specify boot partition.

Code cleanup and usability fixes were done along the way. They're also included into this patchset.

Patchest was tested on NUC device in both EFI and non-EFI modes.

See more details in [YOCTO #6101]

NOTE: Please drop the following pending patches as they're included into the patchset:
[OE-core] [PATCH] image-live: Set syslinux timeout to 5s
[OE-core] [PATCH] initramfs-live-install: Add gptdisk to initramfs [OE-core] [PATCH] init-install-efi: Implement UUID support

Ed Bartosh (11):
image-live: Set syslinux timeout to 5s
initramfs-live-install: Add blkid to initramfs
busybox: Enable UUID-related options
init-install-efi: Implement UUID support
init-install: Use GPT table with GRUB 2
init-install: Implement UUID support
init-install: Specify filesystem type in parted command line
init-install: Specify partition name in parted command line
init-install: code cleanup: Replace tabs with spaces
init-install: code cleanup: replace /dev/$device -> $device
init-install: Properly delete partition table

 meta/classes/image-live.bbclass                    |   2 +-
 meta/recipes-core/busybox/busybox/defconfig        |   8 +-
 .../initrdscripts/files/init-install-efi.sh        |  90 ++++++------
 .../initrdscripts/files/init-install.sh            | 151 +++++++++++++--------
 .../initramfs-live-install-efi_1.0.bb              |   2 +-
 .../initrdscripts/initramfs-live-install_1.0.bb    |   2 +-
 6 files changed, 149 insertions(+), 106 deletions(-)

--
Ed