Embed nvme config
This commit is contained in:
parent
a0cc4d8a12
commit
b1da6a47d6
|
@ -67,8 +67,8 @@ builders = [
|
||||||
provisioners = [
|
provisioners = [
|
||||||
{
|
{
|
||||||
type = "file"
|
type = "file"
|
||||||
source = "../scripts/nvme/"
|
source = "../scripts/nvme-ebs-links"
|
||||||
destination = "/tmp"
|
destination = "/tmp/nvme-ebs-links"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
type = "shell"
|
type = "shell"
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# ebs nvme links
|
|
||||||
nvme[0-9]+n[0-9]+.* root:root 0660 */lib/mdev/nvme-ebs-links
|
|
||||||
|
|
|
@ -149,8 +149,12 @@ install_core_packages() {
|
||||||
|
|
||||||
setup_mdev() {
|
setup_mdev() {
|
||||||
cp /tmp/nvme-ebs-links "$TARGET/lib/mdev"
|
cp /tmp/nvme-ebs-links "$TARGET/lib/mdev"
|
||||||
|
|
||||||
# insert nvme ebs mdev configs just above "# fallback" comment
|
# insert nvme ebs mdev configs just above "# fallback" comment
|
||||||
sed -n -i -e '/# fallback/r /tmp/nvme-ebs-mdev.conf' -e 1x -e '2,${x;p}' -e '${x;p}' "$TARGET/etc/mdev.conf"
|
sed -n -i \
|
||||||
|
-e '/# fallback/i \\n# ebs nvme links\nnvme[0-9]+n[0-9]+.* root:root 0660 */lib/mdev/nvme-ebs-links' \
|
||||||
|
-e 1x -e '2,${x;p}' -e '${x;p}' \
|
||||||
|
"$TARGET/etc/mdev.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
create_initfs() {
|
create_initfs() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user