当前位置:网站首页>Onie supports pice hard disk
Onie supports pice hard disk
2022-07-06 07:41:00 【Caicai azhuang】
List of articles
introduction
We know ,SATA Hard disk and pcie The hard disk dev The device name is different :
SATA The device name is generally sd*, for example sda sdb, The device name after partition is sda1,sda2 etc. ;
and pcie The interface hard disk device name is generally nvme0n*, The device name after partition is nvme0n1p1 nvme0n1p2 etc. .
onie How to support will onie Installed on the designated hard disk ?
onie Support pice Type of hard disk
stay installer/grub-arch/install-arch
Medium install_image
Interface , take $onie_dev
Variable as onie Installation position , from echo "Installing ONIE on: $onie_dev"
You can also see this .onie_dev
A variable is in init_onie_install
Interface , adopt [ -b "$onie_dev" ] || onie_dev="$(install_device_platform)"
Defined .
therefore , You need to support the specified hard disk , Just need to be in your own vendor_modules Lower heavy load install_device_platform
Interface , And return the corresponding hard disk device name . For example, support nvme Hard disk :
install_device_platform()
{
mass_bus="nvme0"
for i in 1 2 3 4 ; do
if $(ls -l /sys/block/nvme0n$i/device 2>/dev/null | grep -q "$mass_bus") ; then
echo "/dev/nvme0n$i"
return 0
fi
done
echo "storage-not-found"
return 1
}
Interface as long as it returns /dev/nvme0n1
that will do .
Similarly, if necessary onie The installation to SATA Hard disk or U disc , Interface to return /dev/sda /dev/sdb
Just wait .
边栏推荐
- Risk planning and identification of Oracle project management system
- MES, APS and ERP are essential to realize fine production
- 数字经济时代,如何保障安全?
- Position() function in XPath uses
- Jerry's ad series MIDI function description [chapter]
- 软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历
- Méthode d'obtention des propriétés de l'objet JS (.Et [] méthodes)
- 位运算异或
- [CF Gym101196-I] Waif Until Dark 网络最大流
- HTTP cache, forced cache, negotiated cache
猜你喜欢
[MySQL learning notes 30] lock (non tutorial)
Typescript interface and the use of generics
Do you really think binary search is easy
智能终端设备加密防护的意义和措施
解决方案:智慧工地智能巡檢方案視頻監控系統
Jerry's ad series MIDI function description [chapter]
TypeScript接口与泛型的使用
Mise en œuvre du langage leecode - C - 15. Somme des trois chiffres - - - - - idées à améliorer
Oracle column to row -- a field is converted to multiple rows according to the specified separator
Leecode-c language implementation -15 Sum of three ----- ideas to be improved
随机推荐
Games101 Lesson 7 shading 1 Notes
学go之路(二)基本类型及变量、常量
[computer skills]
位运算异或
Compliance and efficiency, accelerate the digital transformation of pharmaceutical enterprises, and create a new document resource center for pharmaceutical enterprises
洛谷P1836 数页码 题解
智能终端设备加密防护的意义和措施
[online problem processing] how to kill the corresponding process when the MySQL table deadlock is caused by the code
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
Redis list detailed explanation of character types yyds dry goods inventory
Ble of Jerry [chapter]
Significance and measures of encryption protection for intelligent terminal equipment
Ble of Jerry [chapter]
2022年Instagram运营小技巧简单讲解
Get the path of edge browser
数字经济时代,如何保障安全?
Typescript variable scope
解决方案:智慧工地智能巡检方案视频监控系统
[1. Delphi foundation] 1 Introduction to Delphi Programming
学go之路(一)go的基本介绍到第一个helloworld