当前位置:网站首页>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 .
边栏推荐
- 2022年Instagram运营小技巧简单讲解
- QT color is converted to string and uint
- Apache middleware vulnerability recurrence
- NiO programming introduction
- word怎么只删除英语保留汉语或删除汉语保留英文
- 剪映的相关介绍
- Brief explanation of instagram operation tips in 2022
- [CF Gym101196-I] Waif Until Dark 网络最大流
- TypeScript 可索引类型
- Position() function in XPath uses
猜你喜欢
Opencv learning notes 9 -- background modeling + optical flow estimation
Oracle column to row -- a field is converted to multiple rows according to the specified separator
[1. Delphi foundation] 1 Introduction to Delphi Programming
NiO programming introduction
[computer skills]
leecode-C语言实现-15. 三数之和------思路待改进版
Ble of Jerry [chapter]
Excel的相关操作
[cf gym101196-i] waif until dark network maximum flow
In the era of digital economy, how to ensure security?
随机推荐
继电反馈PID控制器参数自整定
Mise en œuvre du langage leecode - C - 15. Somme des trois chiffres - - - - - idées à améliorer
CF1036C Classy Numbers 题解
If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]
洛谷P1836 数页码 题解
TypeScript 变量作用域
How to delete all the words before or after a symbol in word
Key value judgment in the cycle of TS type gymnastics, as keyword use
Word delete the contents in brackets
Database addition, deletion, modification and query
Typescript function definition
Basics of reptile - Scratch reptile
onie支持pice硬盘
861. Score after flipping the matrix
Opencv learning notes 8 -- answer sheet recognition
jmeter性能测试步骤实战教程
TS 类型体操 之 循环中的键值判断,as 关键字使用
Cf1036c class numbers solution
Google可能在春节后回归中国市场。
Type of data in energy dashboard