当前位置:网站首页>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 .
边栏推荐
- Three no resumes in the software testing industry. What does the enterprise use to recruit you? Shichendahai's resume
- TS 体操 &(交叉运算) 和 接口的继承的区别
- TypeScript 变量作用域
- Apache middleware vulnerability recurrence
- leecode-C语言实现-15. 三数之和------思路待改进版
- Ali's redis interview question is too difficult, isn't it? I was pressed on the ground and rubbed
- Set picture annotation in markdown
- word删除括号里内容
- opencv学习笔记九--背景建模+光流估计
- [cf gym101196-i] waif until dark network maximum flow
猜你喜欢

Simulation of Michelson interferometer based on MATLAB
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics

Bugku CTF daily question: do you want seeds? Blackmailed
![Ble of Jerry [chapter]](/img/d8/d080ccaa4ee530ed21d62755808724.png)
Ble of Jerry [chapter]

Set picture annotation in markdown

数字经济时代,如何保障安全?

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

Redis builds clusters

合规、高效,加快药企数字化转型,全新打造药企文档资源中心

opencv学习笔记九--背景建模+光流估计
随机推荐
软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历
Simulation of Teman green interferometer based on MATLAB
剪映的相关介绍
TS 体操 &(交叉运算) 和 接口的继承的区别
C # create database connection object SQLite database
opencv学习笔记九--背景建模+光流估计
洛谷P1836 数页码 题解
Position() function in XPath uses
861. Score after flipping the matrix
Three no resumes in the software testing industry. What does the enterprise use to recruit you? Shichendahai's resume
Is the super browser a fingerprint browser? How to choose a good super browser?
Key value judgment in the cycle of TS type gymnastics, as keyword use
edge瀏覽器 路徑獲得
Risk planning and identification of Oracle project management system
JMeter performance test steps practical tutorial
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
解决方案:智慧工地智能巡檢方案視頻監控系統
leecode-C語言實現-15. 三數之和------思路待改進版
超级浏览器是指纹浏览器吗?怎样选择一款好的超级浏览器?
word中把帶有某個符號的行全部選中,更改為標題