Mount filesystems by label, not partition
This commit is contained in:
parent
68344d79da
commit
11943e5dde
4
fstab
4
fstab
|
@ -1,5 +1,5 @@
|
||||||
# The root file system has fs_passno=1 as per fstab(5) for automatic fsck.
|
# The root file system has fs_passno=1 as per fstab(5) for automatic fsck.
|
||||||
/dev/mmcblk0p2 / ext4 rw 0 1
|
LABEL=raspiroot / ext4 rw 0 1
|
||||||
# All other file systems have fs_passno=2 as per fstab(5) for automatic fsck.
|
# All other file systems have fs_passno=2 as per fstab(5) for automatic fsck.
|
||||||
/dev/mmcblk0p1 /boot/firmware vfat rw 0 2
|
LABEL=raspiboot /boot/firmware vfat rw 0 2
|
||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
|
|
|
@ -22,9 +22,11 @@ steps:
|
||||||
|
|
||||||
- mkfs: vfat
|
- mkfs: vfat
|
||||||
partition: boot-part
|
partition: boot-part
|
||||||
|
label: raspiboot
|
||||||
|
|
||||||
- mkfs: ext4
|
- mkfs: ext4
|
||||||
partition: root-part
|
partition: root-part
|
||||||
|
label: raspiroot
|
||||||
|
|
||||||
- mount: root-part
|
- mount: root-part
|
||||||
fs-tag: root-fs
|
fs-tag: root-fs
|
||||||
|
|
Loading…
Reference in New Issue