stages/fstab: support device nodes and partlabel
For the fs spec field, support traditional device nodes as well as partition labels. Adjust the test accordingly.
This commit is contained in:
parent
7fde451ecd
commit
e0db66f624
3 changed files with 62 additions and 2 deletions
|
|
@ -307,6 +307,27 @@
|
|||
"path": "/",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
},
|
||||
{
|
||||
"device": "/dev/root",
|
||||
"vfs_type": "ext4",
|
||||
"path": "/sysroot",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
},
|
||||
{
|
||||
"partlabel": "THEPARTITION",
|
||||
"vfs_type": "ext4",
|
||||
"path": "/thepart",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
},
|
||||
{
|
||||
"label": "LABEL",
|
||||
"vfs_type": "ext4",
|
||||
"path": "/label",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,27 @@
|
|||
"path": "/",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
},
|
||||
{
|
||||
"device": "/dev/root",
|
||||
"vfs_type": "ext4",
|
||||
"path": "/sysroot",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
},
|
||||
{
|
||||
"partlabel": "THEPARTITION",
|
||||
"vfs_type": "ext4",
|
||||
"path": "/thepart",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
},
|
||||
{
|
||||
"label": "LABEL",
|
||||
"vfs_type": "ext4",
|
||||
"path": "/label",
|
||||
"freq": 1,
|
||||
"passno": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue