mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
wic: added fspassno parameter to partition
The `fspassno` parameter allows to overwrite the value of the last column (`fs_passno`) in the /etc/fstab of the target root file system. This allows to have periodic file system checks. (From OE-Core rev: b9b9f71e6f37bfbf954ade518391b242669481e3) Signed-off-by: Claudius Heine <ch@denx.de> Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
88c200c751
commit
d5f64c38f1
@@ -138,8 +138,9 @@ class DirectPlugin(ImagerPlugin):
|
||||
device_name = "/dev/%s%s%d" % (part.disk, prefix, part.realnum)
|
||||
|
||||
opts = part.fsopts if part.fsopts else "defaults"
|
||||
passno = part.fspassno if part.fspassno else "0"
|
||||
line = "\t".join([device_name, part.mountpoint, part.fstype,
|
||||
opts, "0", "0"]) + "\n"
|
||||
opts, "0", passno]) + "\n"
|
||||
|
||||
fstab_lines.append(line)
|
||||
updated = True
|
||||
|
||||
Reference in New Issue
Block a user