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:
Christian Kellner 2021-07-21 19:22:34 +00:00 committed by Ondřej Budai
parent 7fde451ecd
commit e0db66f624
3 changed files with 62 additions and 2 deletions

View file

@ -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
}
]
}

View file

@ -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
}
]
}