mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
initrdscripts: add support for NVME target install
Add awareness of /dev/nvme* block devices to install scripts. As presently
written, installer knows only of /dev/sd* and /dev/mmcblk* block devices.
Building upon scaffolding put in place by Awais in...
80ec9f627915 ("initrdscripts: handle mmc device as installer medium")
(From OE-Core rev: b5a036ce958e3fe24690531712071abc14b48033)
Signed-off-by: Joe Konno <joe.konno@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0bb2d92e1c
commit
85c9b9f9c6
@@ -22,6 +22,8 @@ live_dev_name=${live_dev_name#\/dev/}
|
||||
case $live_dev_name in
|
||||
mmcblk*)
|
||||
;;
|
||||
nvme*)
|
||||
;;
|
||||
*)
|
||||
live_dev_name=${live_dev_name%%[0-9]*}
|
||||
;;
|
||||
@@ -146,7 +148,8 @@ swap_start=$((rootfs_end))
|
||||
# 2) they are detected asynchronously (need rootwait)
|
||||
rootwait=""
|
||||
part_prefix=""
|
||||
if [ ! "${device#/dev/mmcblk}" = "${device}" ]; then
|
||||
if [ ! "${device#/dev/mmcblk}" = "${device}" ] || \
|
||||
[ ! "${device#/dev/nvme}" = "${device}" ]; then
|
||||
part_prefix="p"
|
||||
rootwait="rootwait"
|
||||
fi
|
||||
|
||||
@@ -21,6 +21,8 @@ live_dev_name=${live_dev_name#\/dev/}
|
||||
case $live_dev_name in
|
||||
mmcblk*)
|
||||
;;
|
||||
nvme*)
|
||||
;;
|
||||
*)
|
||||
live_dev_name=${live_dev_name%%[0-9]*}
|
||||
;;
|
||||
@@ -153,7 +155,8 @@ swap_start=$((rootfs_end))
|
||||
# 2) they are detected asynchronously (need rootwait)
|
||||
rootwait=""
|
||||
part_prefix=""
|
||||
if [ ! "${device#/dev/mmcblk}" = "${device}" ]; then
|
||||
if [ ! "${device#/dev/mmcblk}" = "${device}" ] || \
|
||||
[ ! "${device#/dev/nvme}" = "${device}" ]; then
|
||||
part_prefix="p"
|
||||
rootwait="rootwait"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user