当前位置:网站首页>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 .
边栏推荐
- Helm install Minio
- [window] when the Microsoft Store is deleted locally, how to reinstall it in three steps
- Database addition, deletion, modification and query
- Basics of reptile - Scratch reptile
- 剪映的相关介绍
- TS类型体操 之 字符串的妙用
- Inspiration from the recruitment of bioinformatics analysts in the Department of laboratory medicine, Zhujiang Hospital, Southern Medical University
- Scala language learning-08-abstract classes
- Transformer principle and code elaboration
- P3047 [USACO12FEB]Nearby Cows G(树形dp)
猜你喜欢
How to prevent Association in cross-border e-commerce multi account operations?
opencv学习笔记八--答题卡识别
Sharing of source code anti disclosure scheme under burning scenario
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
[online problem processing] how to kill the corresponding process when the MySQL table deadlock is caused by the code
How to delete all the words before or after a symbol in word
How Navicat imports MySQL scripts
Google may return to the Chinese market after the Spring Festival.
[1. Delphi foundation] 1 Introduction to Delphi Programming
MEX有关的学习
随机推荐
HTTP cache, forced cache, negotiated cache
Typescript indexable type
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
Jerry's ad series MIDI function description [chapter]
学go之路(二)基本类型及变量、常量
解决方案:智慧工地智能巡检方案视频监控系统
TypeScript 变量作用域
leecode-C語言實現-15. 三數之和------思路待改進版
Launch APS system to break the problem of decoupling material procurement plan from production practice
js对象获取属性的方法(.和[]方式)
TypeScript 接口属性
[1. Delphi foundation] 1 Introduction to Delphi Programming
位运算异或
P3047 [USACO12FEB]Nearby Cows G(树形dp)
If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
Excel的相关操作
珠海金山面试复盘
剪映的相关介绍
jmeter性能测试步骤实战教程